Difference between revisions of "LlSetPos"
Jump to navigation
Jump to search
(llSetPos in a link moves relative to the root.) |
|||
Line 5: | Line 5: | ||
|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. | |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 | For an unlinked prim, or the root prim, this movement is in [[Viewer coordinate frames#Region|region]] coordinates, however, for a linked prim (not the root) the coordinates are in the frame of the root prim ([[Viewer coordinate frames#Local|local]]). 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 | ||
Line 12: | Line 12: | ||
|examples | |examples | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llGetPos]]|}} | |also_functions={{LSL DefineRow||[[llGetPos]]|[[llGetLocalPos]]|}} | ||
|also_tests | |also_tests | ||
|also_events | |also_events |
Revision as of 20:48, 19 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. 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 region coordinates, however, for a linked prim (not the root) the coordinates are in the frame of the root prim (local). 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
Examples
See Also
Functions
• | llGetPos | – | llGetLocalPos |