PRIM ROTATION: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
New page: {{#if: {{LSL_Constants/PrimitiveParams}} }}{{LSL Constant |name=PRIM_ROTATION |type=integer |value=21 |desc=PRIM_ROTATION is used to get or set the prim's rotation. |pa={{LSL Constant/List...
Strife Onizuka (talk | contribs)
mNo edit summary
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if:
<onlyinclude>{{#if:
{{LSL_Constants/PrimitiveParams}}
 
{{#vardefine:rotation_const|{{LSL Const|PRIM_ROTATION|integer|8|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the prim's rotation}}}}
 
{{#vardefine:p_rot_desc|Any valid rotation}}
{{{{#ifeq:{{{1|set}}}|get|dev/null|Issues/SVC-93}}|}}
 
}}</onlyinclude>{{#if:
 
}}{{LSL Constant
}}{{LSL Constant
|name=PRIM_ROTATION
|name=PRIM_ROTATION
|type=integer
|type=integer
|value=21
|value=8
|desc=PRIM_ROTATION is used to get or set the prim's rotation.
|desc=PRIM_ROTATION is used to get or set the prim's rotation.
|pa={{LSL Constant/List|i_front=[&#32;[[PRIM_ROTATION]],&#32;|i_end=&nbsp;]
|pa={{LSL Constant/List|i_front=[&#32;{{#var:rotation_const}},&#32;|i_end=&nbsp;]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|toc=llSetPrimitiveParams
|i1_type=rotation|i1_name=rot
|i1_type=rotation|i1_name=rot
}}
}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;[[PRIM_ROTATION]]|i_end=&nbsp;]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:rotation_const}}|i_end=&nbsp;]);|
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|text
|text
|toc=llGetPrimitiveParams
|r1_type=rotation|r1_name=rot
|r1_type=rotation|r1_name=rot
}}
}}
Line 26: Line 35:
{{LSL DefineRow||[[llSetLocalRot]]|}}
{{LSL DefineRow||[[llSetLocalRot]]|}}
{{LSL DefineRow||[[llGetLocalRot]]|}}
{{LSL DefineRow||[[llGetLocalRot]]|}}
{{LSL DefineRow||[[llGetRootRotation]]|}}
{{LSL DefineRow||[[llGetObjectDetails]]|}}
{{LSL DefineRow||[[llGetObjectDetails]]|}}
|events=
|events=
Line 32: Line 42:
|cat1=Prim
|cat1=Prim
|cat2=Rotation
|cat2=Rotation
|cat3
|cat3=Movement
|cat4
|cat4
}}
}}

Revision as of 02:07, 17 June 2009

Description

Constant: integer PRIM_ROTATION = 8;

The integer constant PRIM_ROTATION has the value 8

PRIM_ROTATION is used to get or set the prim's rotation.

llSetPrimitiveParams

[ PRIM_ROTATION, rotation rot ]
• rotation rot Any valid rotation

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_ROTATION ]);

Returns the list [ rotation rot ]

• rotation rot Any valid rotation

Caveats


Deep Notes

All Issues

~ Search Canny for related Issues
   llSetRot and llSetPrimitiveParams (using PRIM_ROTATION) incorrectly implemented for child prims.

Signature

integer PRIM_ROTATION = 8;