The integer constant PRIM_ROTATION has the value 8
PRIM_ROTATION is used to get or set the prim's rotation.
integer PRIM_ROTATION = 8;
llSetPrimitiveParams([ PRIM_ROTATION, rotation rot ]);
| rotation | rot | Any valid rotation |
When used with llSetPrimitiveParams & llSetLinkPrimitiveParams
llGetPrimitiveParams([ PRIM_ROTATION ]);
Returns the list [ rotation rot ]
| rotation | rot | Any valid rotation |
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 ]);
}
}