#include <PointForceController_ScriptBinding.h>
Inherits PickingSceneController.
|
| Float | getAngularDrag () |
| |
| Float | getForce () |
| |
| Float | getLinearDrag () |
| |
| Boolean | getNonLinear () |
| |
| String | getPosition () |
| |
| Float | getRadius () |
| |
| String | getTrackedObject () |
| |
| void | setAngularDrag (angularDrag) |
| |
| void | setForce (force) |
| |
| void | setLinearDrag (linearDrag) |
| |
| void | setNonLinear (nonLinear) |
| |
| void | setPosition (float x, float y) |
| |
| void | setRadius (radius) |
| |
| void | setTrackedObject (sceneObject) |
| |
| String | getControlGroups () |
| |
| String | getControlLayers () |
| |
| void | setControlGroups (groups$) |
| |
| void | setControlLayers (layers$) |
| |
| void | assignFieldsFrom (SimObject) |
| |
| Integer | clone ([copyDynamicFields=false]?) |
| |
| void | delete () |
| |
| Integer | getId () |
| |
| void | setName (newName) |
| |
| String | getName () |
| |
| String | getClassNamespace () |
| |
| String | getSuperClassNamespace () |
| |
| void | setClassNamespace (nameSpace) |
| |
| void | setSuperClassNamespace () |
| |
| Boolean | isMethod (string methodName) |
| |
| String | call (methodName, [args] *) |
| |
| void | dumpClassHierarchy () |
| |
| void | dump () |
| |
| Boolean | isMemberOfClass (string classname) |
| |
| String | getClassName () |
| |
| String | getFieldValue (fieldName) |
| |
| Boolean | setFieldValue (fieldName, value) |
| |
| Boolean | setEditFieldValue (fieldName, value) |
| |
| Integer | getDynamicFieldCount () |
| |
| String | getDynamicField (index) |
| |
| Integer | getFieldCount () |
| |
| String | getField (int index) |
| |
| void | setProgenitorFile (file) |
| |
| String | getProgenitorFile () |
| |
| Integer | getType () |
| |
| String | getFieldType (fieldName) |
| |
| void | setInternalName (string InternalName) |
| |
| String | getInternalName () |
| |
| Boolean | isChildOfGroup (groupID) |
| |
| Integer | getGroup () |
| |
| Boolean | startTimer (callbackFunction, float timePeriod, [repeat]?) |
| |
| void | stopTimer () |
| |
| Boolean | isTimerActive () |
| |
| Integer | schedule (time, command, [arg] *) |
| |
| void | startListening (SimObject) |
| |
| void | stopListening (SimObject) |
| |
| void | addListener (SimObject) |
| |
| void | removeListener (SimObject) |
| |
| void | removeAllListeners () |
| |
| void | postEvent (String eventName, String data) |
| |
| Boolean | save (fileName, [selectedOnly]?) |
| |
| void | addFieldFilter (fieldName) |
| |
| void | removeFieldFilter (fieldName) |
| |
◆ getAngularDrag()
Gets the angular drag coefficient.
- Returns
- The angular drag coefficient.
◆ getForce()
Gets the point force being used.
- Returns
- The point force being used.
◆ getLinearDrag()
Gets the linear drag coefficient.
- Returns
- The linear drag coefficient.
◆ getNonLinear()
Gets whether to apply the force non-linearly (using the inverse square law) or linearly.
- Returns
- Whether to apply the force non-linearly (using the inverse square law) or linearly.
◆ getPosition()
Gets the position of the force center.
- Returns
- (float x/float y) The x and y (horizontal and vertical) position of the force center.
◆ getRadius()
Gets the radius of the point force being used.
- Returns
- The radius of the point force being used.
◆ getTrackedObject()
Gets the scene object from which the position will be tracked.
- Returns
- The scene object from which the position will be tracked or an empty string if nothing is being tracked.
◆ setAngularDrag()
| void setAngularDrag |
( |
angularDrag |
| ) |
|
Sets the angular drag coefficient (0.0 to 1.0).
- Parameters
-
| angularDrag | The angular drag coefficient |
- Returns
- No return value.
◆ setForce()
Sets the point force to use.
- Parameters
-
| force | The point force to use. |
- Returns
- No return value.
◆ setLinearDrag()
| void setLinearDrag |
( |
linearDrag |
| ) |
|
Sets the linear drag coefficient (0.0 to 1.0).
- Parameters
-
| linearDrag | The linear drag coefficient |
- Returns
- No return value.
◆ setNonLinear()
| void setNonLinear |
( |
nonLinear |
| ) |
|
Sets whether to apply the force non-linearly (using the inverse square law) or linearly.
- Parameters
-
| nonLinear | whether to apply the force non-linearly (using the inverse square law) or linearly. |
- Returns
- No return value.
◆ setPosition()
| void setPosition |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
Sets the position of the force center.
- Parameters
-
| x | The position along the horizontal axis. |
| y | The position along the vertical axis. |
- Returns
- No return value.
◆ setRadius()
| void setRadius |
( |
radius |
| ) |
|
Sets the radius of the point force to use.
- Parameters
-
| radius | The radius of the point force to use. |
- Returns
- No return value.
◆ setTrackedObject()
| void setTrackedObject |
( |
sceneObject |
| ) |
|
Sets a scene object from which the position will be tracked.
- Parameters
-
| sceneObject | The scene object from which the position will be tracked. An empty string will stop tracking. |
- Returns
- No return value.