Difference between revisions of "LlSetTorque"

From Second Life Wiki
Jump to navigation Jump to search
m (Replaced old <LSL> block with <source lang="lsl2">)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{LSL Function
{{LSL Function
|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
Line 5: Line 6:
|func=llSetTorque
|func=llSetTorque
|p1_type=vector|p1_name=torque
|p1_type=vector|p1_name=torque
|p2_type=integer|p2_name=local|p2_desc=boolean, if {{LSLG|TRUE}} uses [[Viewer coordinate frames#Local|local]] axis, if {{LSLG|FALSE}} uses [[Viewer coordinate frames#Region|region]] axis.
|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
|caveats
|caveats
|constants
|constants
|examples=<lsl>
|examples=<source lang="lsl2">
default
default
{
{
Line 16: Line 17:
     {
     {
         llSetTorque(<0,10,0>,1);
         llSetTorque(<0,10,0>,1);
                   //X Y Z  Local
                   //X Y Z  Local
     }
     }
}
}
</lsl>
</source>


|helpers
|helpers
Line 30: 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 11:59, 22 January 2015

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.