LSL Wiki Mirror 10-5-2006: llEuler2Rot

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

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

The inverse function is llRot2Euler.

Example:
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


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