llSetForceAndTorque
void llSetForceAndTorque(vector Force, vector Torque, integer Local)Sets the Force and Torque of object, in object-local coordinates if Local == TRUE (otherwise, the region reference frame is used).
Only works on physical objects.
Parameters
-
Force(vector) - Directional force.
-
Torque(vector) - Torque force.
-
Local(integer) - Boolean, if TRUE uses local axis, if FALSE uses region axis.
- If either value is ZERO_VECTOR, the function eliminates both forces. Both values must be non-zero for this function to work. (The workaround to this is setting both separately.)
Examples
Section titled “Examples”default{ touch_start(integer total_number) { llSetForceAndTorque( <0.0,0.0,5.0>, <1.0,0.0,0.0>, FALSE ); }}