Difference between revisions of "LlSetTorque"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Replaced old <LSL> block with <source lang="lsl2">)
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:
|caveats
|caveats
|constants
|constants
|examples=<lsl>
|examples=<source lang="lsl2">
default
default
{
{
Line 20: Line 20:
     }
     }
}
}
</lsl>
</source>


|helpers
|helpers
Line 31: Line 31:
|cat1=Physics
|cat1=Physics
|cat2=Movement
|cat2=Movement
|haiku={{Haiku|Spinning, all a blur...|Small moment of inertia.|They say torque is cheap.}}
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 12:59, 22 January 2015

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

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

See Also

Functions

•  llSetForceAndTorque
•  llSetForce

Deep Notes

Search JIRA for related Issues

Signature

function void llSetTorque( vector torque, integer local );

Haiku

Spinning, all a blur...
Small moment of inertia.
They say torque is cheap.