Difference between revisions of "PRIM POSITION"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 3: Line 3:
{{#vardefine:position_const|{{LSL Const|PRIM_POSITION|integer|6|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's position}}}}
{{#vardefine:position_const|{{LSL Const|PRIM_POSITION|integer|6|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's position}}}}


{{#vardefine:p_position_desc|}}
{{#vardefine:p_position_desc|Gets or sets the position.}}


{{#vardefine:caveats-get|* '''position''' is always in [[Viewer_coordinate_frames#region|region coordinates]], even if the prim is a child or the root prim of an attachment.}}
{{#vardefine:caveats-get|* '''position''' is always in [[Viewer_coordinate_frames#region|region coordinates]], even if the prim is a child or the root prim of an [[attachment]].}}


{{#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.
Line 18: Line 18:
|#default={{#var:caveats}}
|#default={{#var:caveats}}
}}}}
}}}}
{{#vardefine:p_positionget_desc|position in [[Viewer_coordinate_frames#region|region coordinates]].}}
{{#vardefine:p_positionget_hover|position in region coordinates.}}
{{#vardefine:p_positionset_desc|position in [[Viewer_coordinate_frames#local|local]] or [[Viewer_coordinate_frames#region|regional]] coordinates depending upon the situation.}}
{{#vardefine:p_positionset_hover|position in local or regional coordinates depending upon the situation.}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
Line 30: Line 36:
===Caveats===
===Caveats===
{{#var:caveats-set}}
{{#var:caveats-set}}
|i1_type=vector|i1_name=position
|i1_type=vector|i1_name=positionset|i1_disp=position
|toc=llSetPrimitiveParams
|toc=llSetPrimitiveParams
}}
}}
Line 38: Line 44:
===Caveats===
===Caveats===
{{#var:caveats-get}}
{{#var:caveats-get}}
|r1_type=vector|r1_name=position
|r1_type=vector|r1_name=positionget|r1_disp=position
|toc=llGetPrimitiveParams
|toc=llGetPrimitiveParams
}}
}}

Revision as of 15:33, 11 October 2008

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

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_POSITION ]);

Returns the list [ vector position ]

• vector position position in region coordinates.

Caveats

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_POSITION = 6;