OBJECT OMEGA
Revision as of 17:56, 30 November 2015 by Strife Onizuka (talk | contribs) (Created page with "{{LSL Constant |name=OBJECT_OMEGA |type=integer |value=29 |desc=Used with llGetObjectDetails to get the objects rotational velocity. |examples=<source lang="lsl2"> default {...")
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer OBJECT_OMEGA = 29;The integer constant OBJECT_OMEGA has the value 29
Used with llGetObjectDetails to get the objects rotational velocity.
[ OBJECT_OMEGA ]
[ OBJECT_OMEGA ]Returns the list [ vector omega ]
• vector | omega | – | velocity of the object in radians per second. |
Caveats
Related Articles
Functions
• | llGetObjectDetails | |||
• | llGetOmega | |||
• | llGetAccel | |||
• | llGetVel | |||
• | llGetForce | – | Gets the objects force | |
• | llGetTorque | |||
• | llGetMass | |||
• | llTargetOmega | – | Rotates the object around axis |
Examples
default
{
state_entry()
{
llTargetOmega(<0,0,0.5>, 1, 1);
}
touch_start(integer total_number)
{
llSay(0, (string)llGetObjectDetails(llGetKey(), [OBJECT_OMEGA]));
}
}