Sets the force and torque of object (if the script is physical)
Syntax
void llSetForceAndTorque( vector force, vector torque, integer local );
Forced delay: 0.0 seconds. Energy: 10.0.
Parameters
- vector force
- directional force
- vector torque
- torque force
- integer local (boolean)
- boolean, if TRUE force is treated as a local directional vector, if FALSE force is treated as a region directional vector
Caveats
- Only works in physics-enabled objects.
- 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
default
{
touch_start(integer total_number)
{
llSetForceAndTorque( <0.0,0.0,5.0>, <1.0,0.0,0.0>, FALSE );
}
}
See also
Functions