Returns the rotation (a quaternion) represented by Euler angle

The inverse function is

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

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]