LSL Wiki Mirror 10-5-2006: llGetLocalPos

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
vector llGetLocalPos()

Gets the position of a child object in object-local coordinates, which are relative to the child's parent object.

If the script is inside the parent, or in an unlinked object, it will return the same value as llGetPos would.

ExampleGetRootPos shows an example of its use.

As of SL 1.7, llGetLocalPos will work with attachments, including HUD attachments. The value returned (in the root prim) is relative to the attachment point and not the position of the avatar.

There is no llSetLocalPos() function; instead, llSetPos works fine.

To get the local rotation of a prim, use llGetLocalRot().


Functions | Dynamics | Position | Link
There are 8 comments on this page. [Display comments/form]