Difference between revisions of "PRIM ROTATION"

From Second Life Wiki
Jump to navigation Jump to search
m (links in links cause weirdness.)
m
Line 8: Line 8:


{{#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]].
* {{LSLP|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 on the root of an attached object. Use [[PRIM_ROT_LOCAL]] for the root prim instead.
* [[PRIM_ROTATION]] incorrectly reports the avatars rotation when called on the root of an attached object. Use [[PRIM_ROT_LOCAL]] for the root prim instead.
}}
}}

Revision as of 12:02, 8 June 2012

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;