Difference between revisions of "LlGetOmega"

From Second Life Wiki
Jump to navigation Jump to search
m
(added example)
Line 8: Line 8:
|spec
|spec
|caveats
|caveats
|examples=<lsl>
default
{
    state_entry()
    {
        llTargetOmega(<0,0,0.5>, 1, 1);
    }
    touch_start(integer total_number)
    {
        vector omega = llGetOmega();
        llSay(0, (string)omega);
    }
}
</lsl>
|constants
|constants
|examples
|examples

Revision as of 01:55, 29 July 2009

Summary

Function: vector llGetOmega( );

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

Examples

<lsl> default {

   state_entry()
   {
       llTargetOmega(<0,0,0.5>, 1, 1);
   }
   touch_start(integer total_number)
   {
       vector omega = llGetOmega();
       llSay(0, (string)omega);
   }

}


</lsl>

See Also

Functions

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

Deep Notes

Search JIRA for related Issues

Signature

function vector llGetOmega();