Difference between revisions of "LlGetOmega"
Jump to navigation
Jump to search
m |
|||
(9 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{LSL_Function | {{LSL_Function | ||
|func_id=79|func_sleep=0.0|func_energy=10.0 | |func_id=79|func_sleep=0.0|func_energy=10.0 | ||
|func=llGetOmega | |func=llGetOmega | ||
|return_type=vector | |return_type=vector | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text=that is the | |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=<source lang="lsl2"> | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
llTargetOmega(<0,0,0.5>, 1, 1); | |||
} | |||
touch_start(integer total_number) | |||
{ | |||
vector omega = llGetOmega(); | |||
llSay(0, (string)omega); | |||
} | |||
} | |||
</source> | |||
|constants | |constants | ||
|examples | |examples | ||
Line 14: | Line 29: | ||
{{LSL DefineRow||[[llGetAccel]]|}} | {{LSL DefineRow||[[llGetAccel]]|}} | ||
{{LSL DefineRow||[[llGetVel]]|}} | {{LSL DefineRow||[[llGetVel]]|}} | ||
{{LSL DefineRow||[[llGetForce]]|Gets the objects force}} | |||
{{LSL DefineRow||[[llGetTorque]]|}} | |||
{{LSL DefineRow||[[llGetMass]]|}} | |||
{{LSL DefineRow||[[llTargetOmega]]|Rotates the object around axis}} | |||
|also_tests | |also_tests | ||
|also_events | |also_events |
Latest revision as of 02:22, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llGetOmega( );79 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a vector that is the rotation velocity of the object in radians per second.
Caveats
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 |