Difference between revisions of "LlGetOmega"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text=that is the rotation velocity in radians per second.
|return_text=that is the rotation velocity of the object in radians per second.
|spec
|spec
|caveats
|caveats=*Returns the omega of the root if called in a child prim.
|examples=<lsl>
|examples=<source lang="lsl2">
default
default
{
{
Line 22: Line 22:
     }
     }
}
}
</lsl>
</source>
|constants
|constants
|examples
|examples

Latest revision as of 01:22, 22 January 2015

Summary

Function: vector llGetOmega( );
0.0 Forced Delay
10.0 Energy

Returns a vector that is the rotation velocity of the object in radians per second.

Caveats

  • Returns the omega of the root if called in a child prim.

Examples

default
{
    state_entry()
    {
        llTargetOmega(<0,0,0.5>, 1, 1);
    }

    touch_start(integer total_number)
    {
        vector omega = llGetOmega();
        llSay(0, (string)omega);
    }
}

See Also

Functions

•  llGetAccel
•  llGetVel
•  llGetForce Gets the objects force
•  llGetTorque
•  llGetMass
•  llTargetOmega Rotates the object around axis

Deep Notes

Signature

function vector llGetOmega();