Difference between revisions of "PRIM POSITION"
Jump to navigation
Jump to search
Soft Linden (talk | contribs) |
Soft Linden (talk | contribs) m |
||
Line 6: | Line 6: | ||
{{#vardefine:caveats-set|{{#ifeq:{{{1|}}}|set|**|*}} Depending upon the situation '''position''' may need to be in [[Viewer_coordinate_frames#local|local coordinates]] or [[Viewer_coordinate_frames#region|region coordinates]], See [[llSetPos#Specification]] for details. | {{#vardefine:caveats-set|{{#ifeq:{{{1|}}}|set|**|*}} Depending upon the situation '''position''' may need to be in [[Viewer_coordinate_frames#local|local coordinates]] or [[Viewer_coordinate_frames#region|region coordinates]], See [[llSetPos#Specification]] for details. | ||
{{#ifeq:{{{1|}}}|set|**|*}} The range the prim can move is limited if it is an unattached root prim. The distance is capped to 10m | {{#ifeq:{{{1|}}}|set|**|*}} The range the prim can move is limited if it is an unattached root prim. The distance is capped to 10m per {{#var:position_const}} call. See [[WarpPos]]. This is a very special case. Do not rely on other tag duplication - the results are undefined, and things *will* break in the future.}} | ||
{{#vardefine:caveats| | {{#vardefine:caveats| |
Revision as of 10:05, 14 October 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Description
Constant: integer PRIM_POSITION = 6;The integer constant PRIM_POSITION has the value 6
PRIM_POSITION is used to get or set the prim's position.
llSetPrimitiveParams
[ PRIM_POSITION, vector position ]• vector | position | – | position in local or regional coordinates depending upon the situation. |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
Caveats
- Depending upon the situation position may need to be in local coordinates or region coordinates, See llSetPos#Specification for details.
- The range the prim can move is limited if it is an unattached root prim. The distance is capped to 10m per PRIM_POSITION call. See WarpPos. This is a very special case. Do not rely on other tag duplication - the results are undefined, and things *will* break in the future.
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_POSITION ]);Returns the list [ vector position ]
• vector | position | – | position in region coordinates. |
Caveats
- position is always in region coordinates, even if the prim is a child or the root prim of an attachment.
Caveats
Related Articles
Functions
• | llGetPrimitiveParams | |||
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPos | |||
• | llSetPos | |||
• | llGetLocalPos | |||
• | llGetRootPosition | |||
• | llGetObjectDetails |
Articles
• | warpPos | |||
• | PosJump |