Difference between revisions of "LlTargetOmega"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(cleanup, added example)
Line 1: Line 1:
{{LSLFunctionAll|func_id=133|func_sleep=0.0|func_energy=10.0|func=llTargetOmega|p1_type=vector|p1_name=axis|p2_type=float|p2_name=spinrate|p3_type=float|p3_name=gain|func_footnote=Attempt to spin at spinrate with strength gain|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL Function
|func_id=133
|func_sleep=0.0
|func_energy=10.0
|func=llTargetOmega
|p1_type=vector
|p1_name=axis
|p2_type=float
|p2_name=spinrate
|p3_type=float
|p3_name=gain
|func_footnote=Attempt to spin at spinrate with strength gain
|func_desc=Rotates the object at the specified '''spin rate''', with a rotational bias set by the '''axis''' parameter
|examples=<pre>llTargetOmega(<1.0,3.0,0.5>,PI_BY_TWO,1.0); // rotates the x axis once per second, rotates the y axis 3 times per second, rotates the z axis once every two seconds.</pre>
|}}
 
[[Category:LSL Functions|Target Omega]]
[[Category:LSL Stub]]

Revision as of 09:47, 21 February 2007

Summary

Function: llTargetOmega( vector axis, float spinrate, float gain );

Rotates the object at the specified spin rate, with a rotational bias set by the axis parameter

• vector axis
• float spinrate
• float gain

Attempt to spin at spinrate with strength gain

Examples

llTargetOmega(<1.0,3.0,0.5>,PI_BY_TWO,1.0); // rotates the x axis once per second, rotates the y axis 3 times per second, rotates the z axis once every two seconds.

Deep Notes

Search JIRA for related Issues

Signature

function void llTargetOmega( vector axis, float spinrate, float gain );