Skip to content
lsl.devlsl.devLSL Dev

PRIM_ROTATION

constant
Constant
integer PRIM_ROTATION = 8;

Prim parameter [PRIM_ROTATION, rotation global_rot] to get or set the global rotation of the prim (equivalent to llGetRot/llSetRot; note that setting this on child prims may be broken).

Constant groups

PrimParam · PrimParamGet

Other PrimParam values (42)
Other PrimParamGet values (40)

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

Example 1
default
{
state_entry()
{
/* This is rotates only once and just gradually that once */
vector rotationAngle = <2.3, 5.5, 9.7>;
rotation rot = llEuler2Rot( rotationAngle );
llSetLinkPrimitiveParams(2, [ PRIM_ROTATION, rot ]);
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.