From Second Life Wiki
Revision as of 09:15, 31 May 2007 by Apan Loon
|LSL Portal||Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials|
- If the object is not physical then the effect is entirely client side.
- If the object is physical then the physical representation is updated regularly.
- If the script is attached to the root prim, the entire object rotates around the region axis
- If the object is attached then it rotates around the attachment axis
- If the script is attached to a child prim, the prim rotates around the local axis
- A Child prim can rotate around its own axis while the entire object rotates around another axis.
//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);
Use llVecNorm on axis so that spinrate actually represents the rate of rotation.
function void llTargetOmega( vector axis, float spinrate, float gain );