Apply torque to the node
| <node3d>.applyTorque( | |
| axis | |
| duration = 0 | |
| mode = viz.ABS_GLOBAL |
)
axis
The torque vector. Determines the orientation and strength of the rotational force.
duration = 0
The length of time that the torque is applied to the node. A value of 0 means the torque will be applied for one time step.
mode = viz.ABS_GLOBAL
One of the following modes:
Torque modes |
|
viz.ABS_GLOBAL |
The torque vector is specified in global coordinates |
viz.ABS_LOCAL |
The torque vector is specified in the objects local coordinate system. |
Torque affects the angular velocity of a node.
NOTE: This command has no effect if physics is not defined on the node.
None
<node3d>.applyForce
<node3d>.getAngularVelocity
<node3d>.getVelocity
<node3d>.setAngularVelocity
<node3d>.setVelocity