Difference between revisions of "LlSetTorque"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 6: Line 6:
|func=llSetTorque
|func=llSetTorque
|p1_type=vector|p1_name=torque
|p1_type=vector|p1_name=torque
|p2_type=integer|p3_subtype=boolean|p2_name=local
|p2_type=integer|p2_subtype=boolean|p2_name=local
|func_desc=Sets the torque of object (if the script is physical)
|func_desc=Sets the torque of object (if the script is physical)
|spec
|spec

Revision as of 00:56, 23 December 2013

Summary

Function: llSetTorque( vector torque, integer local );

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

• vector torque
• integer local boolean, if TRUE uses the local axis, if FALSE uses the region region axis

Caveats

Examples

<lsl> default {

   touch_start(integer total_number)
   {
       llSetTorque(<0,10,0>,1);
                  //X  Y Z  Local
   }

}

</lsl>

See Also

Functions

•  llSetForceAndTorque
•  llSetForce

Deep Notes

Search JIRA for related Issues

Signature

function void llSetTorque( vector torque, integer local );