Difference between revisions of "LlSetForceAndTorque"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{LSL Function
{{LSL Function
|inject-2={{LSL_Function/force|force|local=local}}{{LSL_Function/physical}}
|inject-2={{LSL_Function/force|force|torque|local=local}}{{LSL_Function/physical}}
|func_id=76
|func_id=76
|func_sleep=0.0
|func_sleep=0.0

Revision as of 13:21, 10 June 2012

Summary

Function: llSetForceAndTorque( vector force, vector torque, integer local );

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

Search JIRA for related Issues

Signature

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