Difference between revisions of "PRIM POSITION"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 4: Line 4:


{{#vardefine:p_position_desc|}}
{{#vardefine:p_position_desc|}}


{{#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|* 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 times the number of {{#var:position_const}} calls; not 10m per call.}}


{{#vardefine:caveats|
{{#vardefine:caveats|
{{#switch:{{{1|}}}|set={{#var:caveats}}
{{#switch:{{{1|}}}|set={{#var:caveats}}
*{{#var:position_const}}
{{#var:caveats-set}}
{{#var:caveats-set}}
|get={{#var:caveats}}
|get={{#var:caveats}}

Revision as of 14:09, 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

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

Caveats

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_POSITION ]);

Returns the list [ vector position ]

• vector position

Caveats

  • position is always in region coordinates, even if the prim is a child or the root prim of an attachment.

Caveats


Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_POSITION = 6;