Difference between revisions of "LlSetAngularVelocity"

From Second Life Wiki
Jump to navigation Jump to search
m (templatize)
m
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|func_id=???|func_sleep=0.0|func_energy=???
|func_id=???|func_sleep=0.0|func_energy=???
|func=llSetAngularVelocity
|func=llSetAngularVelocity
|p1_type=vector|p1_name=force
|p1_type=vector|p1_name=initial_omega
|p2_type=integer|p2_name=local
|p2_type=integer|p2_subtype=boolean|p2_name=local
|func_desc=Applies rotational velocity to object.
|func_desc=Applies rotational velocity to object.
It does the same job as [[llApplyRotationalImpulse]] but doesn't depend of the mass of object .
|func_footnote
|func_footnote
|return_text
|return_text
Line 12: Line 13:
|constants
|constants
|examples=
|examples=
<br>
Instances :<br>
one regular cube with mass M , and gravity 0 ( to disable the gravity) ; the object is homogenous and with only one prim so, its center of mass is its center of the object and its physical axis of rotation are its local axis  : <br>
<ul>
<li>LlSetAngularVelocity(<0,0,1>, TRUE ) => starts to rotate around its Z local axis with a start value of omega = 1 radian /second , and slows down over time until it won't rotate </li>
<li>llApplyRotationalImpulse(<0,0,1>, TRUE ) => starts to rotate around its Z local axis with a start value of omega = 1/M radian /second , and slows down over time until it won't rotate</li>
<li>llTargetOmega(<0.0,0.0,1.0>, 1.0, 1.0) => if the object is physical , starts to rotate around its Z local axis with a start value of omega = 1 radian / second . It won t slow down over time </li>
</ul>
|helpers
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||[[llApplyRotationalImpulse]]}}
{{LSL DefineRow||[[llSetVelocity]]|}}
{{LSL DefineRow||[[llSetVelocity]]|}}
|notes
|notes
Line 22: Line 32:
|cat3
|cat3
|cat4
|cat4
|history = Date of Release  [[ Release_Notes/Second_Life_Server/11#11.08.10.238207 | 10/08/2011 ]]
}}
}}

Latest revision as of 01:43, 23 December 2013

Summary

Function: llSetAngularVelocity( vector initial_omega, integer local );

Applies rotational velocity to object. It does the same job as llApplyRotationalImpulse but doesn't depend of the mass of object .

• vector initial_omega
• integer local boolean, if TRUE force is treated as a local directional vector, if FALSE force is treated as a region directional vector

Caveats

Examples


Instances :
one regular cube with mass M , and gravity 0 ( to disable the gravity) ; the object is homogenous and with only one prim so, its center of mass is its center of the object and its physical axis of rotation are its local axis  :

  • LlSetAngularVelocity(<0,0,1>, TRUE ) => starts to rotate around its Z local axis with a start value of omega = 1 radian /second , and slows down over time until it won't rotate
  • llApplyRotationalImpulse(<0,0,1>, TRUE ) => starts to rotate around its Z local axis with a start value of omega = 1/M radian /second , and slows down over time until it won't rotate
  • llTargetOmega(<0.0,0.0,1.0>, 1.0, 1.0) => if the object is physical , starts to rotate around its Z local axis with a start value of omega = 1 radian / second . It won t slow down over time

See Also

Functions

•  llApplyRotationalImpulse
•  llSetVelocity

Deep Notes

History

Date of Release 10/08/2011

Search JIRA for related Issues

Signature

function void llSetAngularVelocity( vector initial_omega, integer local );