anyKode Marilou
ContentsIndexHome
PreviousUpNext
Geom::SetTorque

Apply a force vector to the geometry.

C++
bool SetTorque(MODAVECTOR3 & TorqueAxisAndLength, bool bRelativeTorqueAxis, MU32 DurationMS = INFINITE);
Parameters 
Description 
MODAVECTOR3 & TorqueAxisAndLength 
[in] Torque to be applied on each geometry axis. 
bool bRelativeTorqueAxis 
[in] true if the vector is relative to the geometry, false if absolute. 
MU32 DurationMS = INFINITE 
[in] Vector life time in ms. After the time life, the vector is canceled. 

true if the command was sent, false otherwise.

SetTorque applies a torque to a dynamic geometry (inside a rigid body). The vector represents the direction (central or absolute) and the length of the torque for each axis. Each call to this function cancels the effets of previous calls to SetForce, SetTorque and SetForceAndTorque. The vector lifetime is infinite if DurationMS=INFINITE.

v4.7.24

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!