PRIM ROTATION: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Strife Onizuka (talk | contribs)
first try will work on it later.
Strife Onizuka (talk | contribs)
finally got those caveat subsections done. Been bothering me for a while now.
Line 8: Line 8:


{{#vardefine:caveats-get|{{#var:caveats-get}}
{{#vardefine:caveats-get|{{#var:caveats-get}}
* [[PRIM ROTATION]] always returns the [[Viewer_coordinate_frames#global|global rotation]] for the prim, even if it is a child prim in an [[attachment]].
* '''{{LSL Param|rot}}''' is always the [[Viewer_coordinate_frames#global|global rotation]], even if the prim is a child or the root prim of an [[attachment]].
}}
}}


Line 16: Line 16:
|set={{#vardefine:caveats|{{#var:caveats}}
|set={{#vardefine:caveats|{{#var:caveats}}
{{#var:caveats-set}}}}
{{#var:caveats-set}}}}
}}
}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
{{#vardefine:caveats|{{#var:caveats}}
{{#var:caveats-get}}
{{#var:caveats-set}}
}}


}}{{LSL Constant
}}{{LSL Constant
Line 32: Line 28:
|pa={{LSL Constant/List|i_front=[&#32;{{#var:rotation_const}},&#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]]
{{LSL Generic/Caveats|caveats={{#var:caveats-set}}|title=*}}
|toc=llSetPrimitiveParams
|toc=llSetPrimitiveParams
|i1_type=rotation|i1_name=rot
|i1_type=rotation|i1_name=rot
Line 37: Line 34:
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:rotation_const}}|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={{LSL Generic/Caveats|caveats={{#var:caveats-get}}|title=*}}
|toc=llGetPrimitiveParams
|toc=llGetPrimitiveParams
|r1_type=rotation|r1_name=rot
|r1_type=rotation|r1_name=rot

Revision as of 16:00, 7 April 2010

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

Caveats


Deep Notes

All Issues

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

Signature

integer PRIM_ROTATION = 8;