Hi all;
I have an object (a projectile) that has only a vector as its orientation (no euller angles or quaternions). How can i get the eullers angles to rotate it (i think the Z axis could be 0)? Is there any way to draw it without having to convert that vector? (sorry about my english)
Thanx

07-16-2003, 05:10 AM

i dunno if my compute is good but you can
try this to rotate your vector

you should use a quaternion and transform it into a 4x4 matrix.
After multiply the vector by the matrix and the job is done (probably)
i have posted a stuff about vector*matrix
have a look on this forum

from the orientation X, you can compute two orthogonal vectors Y,Z.
X^Y=Z, Y^Z=X, Z^X=Y
from X, Y, Z, you can create a rotation matrix (like glu does in gluLookAt) and concatenate it to the modelview matrix.