From Second Life Wiki
SetPos
llSetPos
Description
Function: llSetPos( vector pos );
Moves the object or primitive towards pos without using physics.
Movement is capped to 10m per call for unattached root prims.
Specification
Coordinate Frame
- Root prims (or single prim objects)
- Child prims (non root prims)
Caveats
- This function causes the script to sleep for 0.2 seconds.
- Because of the intermixing of local and regional coordinates with this function, when a prims position is wanted it is best to use llGetLocalPos.
- This function does not work for physical objects. Use llMoveToTarget instead.
Notes
Multiple movement commands can be chained together with llSetPrimitiveParams and PRIM_POSITION. The advantage of doing this is that the script only sleeps once per function call instead of once per movement.
See Also
Functions
| •
| llGetLocalPos
| –
| Returns the prim's local position if it is attached or non-root (otherwise it returns the global position)
|
|
| •
| llGetRootPosition
| –
| Gets the root prims position
|
|
| •
| llGetPos
| –
| Returns the prim's global position, even if it is attached or non-root
|
|