Difference between revisions of "PRIM POS LOCAL"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<onlyinclude>{{#if:
<onlyinclude>{{#if:


{{#vardefine:pos_local_const|{{LSL Const|PRIM_POS_LOCAL|integer|-999|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's local position}}}}
{{#vardefine:pos_local_const|{{LSL Const|PRIM_POS_LOCAL|integer|33|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's local position}}}}


{{#vardefine:p_pos_desc|position in [[Viewer_coordinate_frames#local|local]] coordinates.}}
{{#vardefine:p_pos_desc|position in [[Viewer_coordinate_frames#local|local]] coordinates.}}
{{#vardefine:p_pos_hover|position in local coordinates.}}
{{#switch:{{{1|}}}
{{#switch:{{{1|}}}
|get={{#vardefine:caveats|{{#var:caveats}}
|get={{#vardefine:caveats|{{#var:caveats}}
Line 15: Line 17:


}}
}}
<!-- {{LSL Generic/RC|[[Beta/Magnum|RC Magnum]]}} -->
{{LSL Generic/pre-release|constant}}
{{LSL Constant
{{LSL Constant
|inject-2={{LSL PrimitiveParam Categorize|Prim}}
|name=PRIM_POS_LOCAL
|name=PRIM_POS_LOCAL
|type=integer
|type=integer
|value=-999
|value=33
|desc=PRIM_POS_LOCAL is used to get or set the prim's local position.
|desc=PRIM_POS_LOCAL is used to get or set the prim's local position.
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([&#32;{{#var:pos_local_const}},&#32;|i_end=&nbsp;]);
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([&#32;{{#var:pos_local_const}},&#32;|i_end=&nbsp;]);
Line 26: Line 27:
{{LSL Generic/Caveats|caveats={{#var:caveats-set}}|title=*}}
{{LSL Generic/Caveats|caveats={{#var:caveats-set}}|title=*}}
|toc=llSetPrimitiveParams
|toc=llSetPrimitiveParams
|i1_type=vector|i1_name=position|i1_desc={{#var:p_pos_desc}}
|i1_type=vector|i1_name=pos|i1_disp=position
}}
}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:pos_local_const}}|i_end=&nbsp;]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:pos_local_const}}|i_end=&nbsp;]);|
Line 32: Line 33:
|text={{LSL Generic/Caveats|caveats={{#var:caveats-get}}|title=*}}
|text={{LSL Generic/Caveats|caveats={{#var:caveats-get}}|title=*}}
|toc=llGetPrimitiveParams
|toc=llGetPrimitiveParams
|r1_type=vector|r1_name=position|r1_desc={{#var:p_pos_desc}}
|r1_type=vector|r1_name=pos|r1_disp=position
}}
}}
|examples
|examples
Line 44: Line 45:
{{LSL DefineRow||[[llSetLinkPrimitiveParamsFast]]|}}
{{LSL DefineRow||[[llSetLinkPrimitiveParamsFast]]|}}
{{LSL DefineRow||[[llGetPos]]|}}
{{LSL DefineRow||[[llGetPos]]|}}
{{LSL DefineRow||[[llSetLocalPos]]|}}
{{LSL DefineRow||[[llSetPos]]|}}
{{LSL DefineRow||[[llGetLocalPos]]|}}
{{LSL DefineRow||[[llGetLocalPos]]|}}
{{LSL DefineRow||[[llGetRootPosition]]|}}
{{LSL DefineRow||[[llGetRootPosition]]|}}
Line 51: Line 52:
<!--{{LSL DefineRow||[[changed]]|}}-->
<!--{{LSL DefineRow||[[changed]]|}}-->
|location
|location
|cat1=Prim
|cat1
|cat2=Movement
|cat2=Movement
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 09:07, 28 February 2016

Description

Constant: integer PRIM_POS_LOCAL = 33;

The integer constant PRIM_POS_LOCAL has the value 33

PRIM_POS_LOCAL is used to get or set the prim's local position.

llSetPrimitiveParams

llSetPrimitiveParams([ PRIM_POS_LOCAL, vector position ]);
• vector position position in local coordinates.

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_POS_LOCAL ]);

Returns the list [ vector position ]

• vector position position in local coordinates.

Caveats


Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_POS_LOCAL = 33;