Don't click here unless you want to be banned.

LSL Wiki : llEuler2Rot

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are
rotation llEuler2Rot(vector vec)

Returns the rotation (a quaternion) represented by Euler angle vec (in radians).

The inverse function is llRot2Euler.

vector eul = <0, 0, 45>; //45 degrees around the z-axis, in Euler form
eul *= DEG_TO_RAD; //convert to radians rotation
rotation quat = llEuler2Rot( eul ); //convert to quaternion
llSetRot( quat ); //rotate the object

This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | rotation | rotation math library
There is no comment on this page. [Display comments/form]