Difference between revisions of "LlSetPos"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
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. | |func_desc=Moves the object or primitive towards the specified location without using physics. How this is achived depends upon if the prim is the root and if it is attached (see ''[[#Specification|Specification]]''). | ||
|func_footnote=Movement is capped to 10m per call for unattached root prims. | |func_footnote=Movement is capped to 10m per call for unattached root prims. | ||
|spec= | |spec= |
Revision as of 08:12, 20 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSetPos( vector pos );58 | Function ID |
0.2 | Forced Delay |
10.0 | Energy |
Moves the object or primitive towards the specified location without using physics. How this is achived depends upon if the prim is the root and if it is attached (see Specification).
• vector | pos |
Movement is capped to 10m per call for unattached root prims.
Specification
- Root prims (or single prim objects)
- Not attached
- pos is a region coordinate.
- Attached
- pos is a local coordinaterelative to the attach point.
- Not attached
- Child prims (non root prims)
- pos is a local coordinate relative to the root prim.
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 |