LlGetRootRotation
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Summary
Function: rotation llGetRootRotation( );| 269 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns a rotation that is the region rotation of the root prim of the object.
Examples
Simple example to set region rotation of child prim in unattached link set
default { state_entry() { //Rotate 45 degrees about Y-axis rotation globalRot = llEuler2Rot(<0.0, 45.0, 0.0> * DEG_TO_RAD); llSetLocalRot(globalRot / llGetRootRotation()); } }
Notes
In an attached object, returns region rotation of avatar NOT of the object's root prim. See special cases of rotation.
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

