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