llSetTorque

From Second Life Wiki
Revision as of 11:59, 22 January 2015 by Lady Sumoku (talk | contribs) (Replaced old <LSL> block with <source lang="lsl2">)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

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

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

Signature

function void llSetTorque( vector torque, integer local );

Haiku

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