Difference between revisions of "PRIM POSITION"

From Second Life Wiki
Jump to navigation Jump to search
m (Link to the obsolete undocumented posJump only thru the current undocumented warpPos, not more directly)
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 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.}}
{{#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 rule duplication of other flags - the results are undefined, and things ''will'' break in the future.}}


{{#vardefine:caveats|
{{#vardefine:caveats|
Line 30: Line 30:
|value=6
|value=6
|desc=PRIM_POSITION is used to get or set the prim's position.
|desc=PRIM_POSITION is used to get or set the prim's position.
|pa={{LSL Constant/List|i_front=[ {{#var:position_const}}, |i_end= ]
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([ ..., {{#var:position_const}}, |i_end=, ... ]);
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=The same syntax applied to [[llSetLinkPrimitiveParams]], but with the addition of a {{LSLGC|Link|link}} parameter.
===Caveats===
===Caveats===
{{#var:caveats-set}}
{{#var:caveats-set}}
Line 37: Line 37:
|toc=llSetPrimitiveParams
|toc=llSetPrimitiveParams
}}
}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:position_const}}|i_end= ]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ ..., {{#var:position_const}}|i_end=, ... ]);|
|r_front=Returns the list [ |r_end= ]
|r_front=Returns the list [ |r_end= ]
|text=
|text=

Revision as of 15:20, 1 January 2009

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

llSetPrimitiveParams([ ..., PRIM_POSITION, vector position, ... ]);
• vector position position in local or regional coordinates depending upon the situation.

The same syntax applied to llSetLinkPrimitiveParams, but with the addition of a link parameter.

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 rule duplication of other flags - 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

Related Articles

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_POSITION = 6;