rotation llGetRot()
Returns the
object's rotation. If
called from a
script that is
attached to an
avatar, it will return the avatar's rotation. To get an attachment's rotation relative to the attach point use
llGetLocalRot.
Note: the
tooltip in the
LSL editor erroneously states "gets the rotation (if the script isn't
physical)". Aside from the fact that the the
script itself can't be physical (they obviously mean the
object containing the script), that line is wrong anyway.
llGetRot does work if the object is physical.
Compare with
llGetLocalRot and
llGetRootRotation. See also
llGetPos and
llGetPrimitiveParams.
Functions |
Rotation |
Dynamics