llSetAngularVelocity
Jump to navigation
Jump to search
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSetAngularVelocity( vector initial_omega, integer local );0.0 | Forced Delay |
??? | Energy |
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
- Only works in physics-enabled objects.
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 |