Difference between revisions of "LlSetPos"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 9: Line 9:
*Root prims (or single prim objects)
*Root prims (or single prim objects)
**Attached
**Attached
***'''pos''' is a [[Viewer coordinate frames#local|local coordinate]] relative to the attach point.
***'''pos''' is a [[Viewer coordinate frames#Local|local coordinate]] relative to the attach point.
**Not attached
**Not attached
***'''pos''' is a [[Viewer coordinate frames#Region|region coordinate]].
***'''pos''' is a [[Viewer coordinate frames#Region|region coordinate]].
*Child prims (non root prims)
*Child prims (non root prims)
**'''pos''' is a [[Viewer coordinate frames#local|local coordinate]] relative to the root prim.
**'''pos''' is a [[Viewer coordinate frames#Local|local coordinate]] relative to the root prim.
|caveats=
|caveats=
*Because of the intermixing of local and regional coordinates with this function, when a prims position is wanted it is best to use [[llGetLocalPos]].
*Because of the intermixing of local and regional coordinates with this function, when a prims position is wanted it is best to use [[llGetLocalPos]].

Revision as of 16:19, 16 April 2007

Summary

Function: llSetPos( vector pos );
0.2 Forced Delay
10.0 Energy

Moves the object or primitive towards pos without using physics.

• vector pos position in region or local coordinates depending on the situation (see #Specification).

Movement is capped to 10m per call for unattached root prims.

Specification

Coordinate Frame

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.

Examples

See Also

Functions

•  llGetLocalPos Returns the prim's local position if it is attached or non-root (otherwise it returns the global position)
•  llGetPos Returns the prim's global position, even if it is attached or non-root

Deep Notes

Signature

function void llSetPos( vector pos );