Difference between revisions of "LlSetTorque"

From Second Life Wiki
Jump to navigation Jump to search
m
m (spelling ~_~)
Line 1: Line 1:
{{LSL Function
{{LSL Function
|inject-2={{LSL_Function/force|troque|local=local}}{{LSL_Function/physical}}
|inject-2={{LSL_Function/force|torque|local=local}}{{LSL_Function/physical}}
|func_id=74
|func_id=74
|func_sleep=0.0
|func_sleep=0.0

Revision as of 13:49, 10 June 2012

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 );