llSetForceAndTorque

From Second Life Wiki
Revision as of 23:55, 22 December 2013 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

Summary

Function: llSetForceAndTorque( vector force, vector torque, integer local );
0.0 Forced Delay
10.0 Energy

Sets the force and torque of object (if the script is physical)

• vector force directional force
• vector torque torque force
• integer local boolean, if TRUE force is treated as a local directional vector, if FALSE force is treated as a region directional vector

Caveats

Examples

<lsl> default {

   touch_start(integer total_number)
   {
       llSetForceAndTorque( <0.0,0.0,5.0>, <1.0,0.0,0.0>, FALSE );
   }

}

</lsl>

See Also

Functions

•  llSetForce
•  llSetTorque

Deep Notes

Signature

function void llSetForceAndTorque( vector force, vector torque, integer local );