Difference between revisions of "LlSetAngularVelocity"

From Second Life Wiki
Jump to navigation Jump to search
Line 6: Line 6:
|p2_type=integer|p2_name=local
|p2_type=integer|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 . <br>
It does the same job as [[llApplyRotationalImpulse]] but doesn't depend of the mass of object .
|func_footnote
|return_text
|spec
|caveats
|constants
|examples=
<br>
Instances :<br>
Instances :<br>
one object with mass M , and gravity 0 ( to disable the gravity) : <br>
one object with mass M , and gravity 0 ( to disable the gravity) : <br>
Line 14: Line 21:
<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>
<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>
</ul>
|func_footnote
|return_text
|spec
|caveats
|constants
|examples=
|helpers
|helpers
|also_functions=
|also_functions=

Revision as of 07:46, 11 June 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 object with mass M , and gravity 0 ( to disable the gravity) :

  • 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

Search JIRA for related Issues

Signature

function void llSetAngularVelocity( vector initial omega, integer local );