Difference between revisions of "LlSetPos"

From Second Life Wiki
Jump to navigation Jump to search
(llSetPos in a link moves relative to the root.)
Line 3: Line 3:
|func=llSetPos
|func=llSetPos
|p1_type=vector|p1_name=pos
|p1_type=vector|p1_name=pos
|func_desc=Moves the object or primitive towards the specified location without using physics. If the script is attached to a linked prim that is not root, the function has no effect.
|func_desc=Moves the object or primitive towards the specified location without using physics. If the script is attached to a linked prim that is not root, the function moves the prim relative to the root.
 
For an unlinked prim, or the root prim, this movement is in world coordinates, however, for a linked prim (not the root) the coordinates are in the frame of the root prim. You can get a linked prim's position relative to the root prim with [[llGetLocalPos]]. There is no llSetLocalPos because this function does that if it is in a linked prim (not the root).
|func_footnote=Movement is capped to 10m per call.
|func_footnote=Movement is capped to 10m per call.
|spec
|spec

Revision as of 20:37, 19 March 2007

Summary

Function: llSetPos( vector pos );

Moves the object or primitive towards the specified location without using physics. If the script is attached to a linked prim that is not root, the function moves the prim relative to the root.

For an unlinked prim, or the root prim, this movement is in world coordinates, however, for a linked prim (not the root) the coordinates are in the frame of the root prim. You can get a linked prim's position relative to the root prim with llGetLocalPos. There is no llSetLocalPos because this function does that if it is in a linked prim (not the root).

• vector pos

Movement is capped to 10m per call.

Caveats

  • This function causes the script to sleep for 0.2 seconds.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llGetPos

Deep Notes

Search JIRA for related Issues

Signature

function void llSetPos( vector pos );