Don't click here unless you want to be banned.

LSL Wiki : llGetRot

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl427.us.archive.org
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.

llGetRot() doesn't return the accurate rotation of the avatar. Repeated calls may or may not return different results. Changing your angle under 3 degrees often doesn't show any change at all to the result.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Rotation | Dynamics
Comments [Hide comments/form]
llGetRot() appears to function in a similar way to llGetPos(), if used inside a child prim, of an object thats attached to an avatar. If called within the root prim, it will do as above. If called from the child prim, it appears to give a global (region-relative) rotation, which is avatar rotation, adjusted by child prim local rotation.
-- 60.53.2.100 (2007-06-09 11:01:43)
Attach a comment to this page: