Difference between revisions of "PRIM POSITION"
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#global|global coordinates]], even if the prim is a child.}} | |||
{{#vardefine:caveats-set|* Depending upon the situation '''position''' may need to be in [[Viewer_coordinate_frames#local|local coordinates]] or [[Viewer_coordinate_frames#global|global coordinates]], See [[llSetPos#Specification]] for details.}} | |||
{{#vardefine:caveats| | |||
{{#switch:{{{1|}}}|set={{#var:caveats}} | |||
{{#var:caveats-set}} | |||
|get={{#var:caveats}} | |||
{{#var:caveats-get}} | |||
|#default={{#var:caveats}} | |||
}}}} | |||
}}</onlyinclude>{{#if: | }}</onlyinclude>{{#if: | ||
Line 14: | Line 26: | ||
|pa={{LSL Constant/List|i_front=[ {{#var:position_const}}, |i_end= ] | |pa={{LSL Constant/List|i_front=[ {{#var:position_const}}, |i_end= ] | ||
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | |text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]] | ||
===Caveats=== | |||
{{#var:caveats-set}} | |||
|i1_type=vector|i1_name=position | |i1_type=vector|i1_name=position | ||
|toc=llSetPrimitiveParams | |toc=llSetPrimitiveParams | ||
Line 19: | Line 33: | ||
|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= | ||
===Caveats=== | |||
{{#var:caveats-get}} | |||
|r1_type=vector|r1_name=position | |r1_type=vector|r1_name=position | ||
|toc=llGetPrimitiveParams | |toc=llGetPrimitiveParams |
Revision as of 13:45, 11 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 |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
Caveats
- Depending upon the situation position may need to be in local coordinates or global coordinates, See llSetPos#Specification for details.
llGetPrimitiveParams
llGetPrimitiveParams([ PRIM_POSITION ]);Returns the list [ vector position ]
• vector | position |
Caveats
- position is always in global coordinates, even if the prim is a child.
Caveats
Related Articles
Functions
• | llGetPrimitiveParams | |||
• | llSetPrimitiveParams | |||
• | llSetLinkPrimitiveParams | |||
• | llGetPos | |||
• | llSetPos | |||
• | llGetLocalPos | |||
• | llGetRootPosition | |||
• | llGetObjectDetails |