Difference between revisions of "PRIM ROTATION"

From Second Life Wiki
Jump to navigation Jump to search
m (Adding llGetLinkPrimitiveParams to Related Articles)
m
Line 9: Line 9:
{{#vardefine:caveats-get|{{#var:caveats-get}}
{{#vardefine:caveats-get|{{#var:caveats-get}}
* '''{{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]].
* '''{{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]].
* [[PRIM_ROTATION]] incorrectly reports the avatars rotation when called from the root of an attached object. Use [[PRIM_ROT_LOCAL]] for the root prim instead.
}}
}}



Revision as of 07:35, 24 October 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 All Issues ~ Search JIRA for related Bugs

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_ROTATION ]);

Returns the list [ rotation rot ]

• rotation rot Any valid rotation

Caveats

All Issues ~ Search JIRA for related Bugs

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;