TorqueScript Reference
Public Member Functions | List of all members
AmbientForceController Class Reference

#include <AmbientForceController_ScriptBinding.h>

Inherits GroupedSceneController.

Public Member Functions

String getForce ()
 
void setForce (float x, float y)
 

Member Function Documentation

◆ getForce()

String getForce ( )

Gets the ambient force being used.

Returns
The ambient force being used.

◆ setForce()

void setForce ( float  x,
float  y 
)

Sets the ambient force to use.

Parameters
xThe component of the ambient force along the horizontal (world) axis.
yThe component of the ambient force along the vertical (world) axis.
Returns
No return value.