Difference between revisions of "LlTargetOmega"

From Second Life Wiki
Jump to navigation Jump to search
Line 4: Line 4:
|func_energy=10.0
|func_energy=10.0
|func=llTargetOmega
|func=llTargetOmega
|p1_type=vector
|p1_type=vector|p1_name=axis
|p1_name=axis
|p2_type=float|p2_name=spinrate
|p2_type=float
|p3_type=float|p3_name=gain
|p2_name=spinrate
|p3_type=float
|p3_name=gain
|func_footnote=Attempt to spin at spinrate with strength 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
|func_desc=Rotates the object at '''spinrate''' times the magnitude of '''axis''' in radians per second, 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>
|examples=<pre>//rotates the x axis once per second,
|}}
//  rotates the y axis 3 times per second,  
 
//  rotates the z axis once every two seconds.
[[Category:LSL Functions|Target Omega]]
//  combined the rate is about 3.20156 revolutions per second
[[Category:LSL Stub]]
llTargetOmega(<1.0,3.0,0.5>,TWO_PI,1.0);</pre>
|spec
|caveats
|constants
|helpers
|also_functions
|also_tests
|also_events
|also_articles
|notes
|cat1=Physics
|cat2=Effects
|cat3
|cat4
}}

Revision as of 11:30, 21 February 2007

Summary

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

Rotates the object at spinrate times the magnitude of axis in radians per second, with a rotational bias set by the axis parameter.

• vector axis
• float spinrate
• float gain

Attempt to spin at spinrate with strength gain

Examples

//rotates the x axis once per second,
//  rotates the y axis 3 times per second, 
//  rotates the z axis once every two seconds.
//  combined the rate is about 3.20156 revolutions per second
llTargetOmega(<1.0,3.0,0.5>,TWO_PI,1.0);

Deep Notes

Search JIRA for related Issues

Signature

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