PDA

View Full Version : Rotation - Brain Broken !



Andrew Jameson
03-21-2006, 07:55 AM
Sorry about this - brain's not working at the moment ... I need to rotate an object through 60 deg about it's Y axis and rotate the object through 60 deg along its X axis :

so,
glRotatef(60, 0, 1, 0);
glRotatef(60, 1, 0, 0);

does exactly that ... but if I start with a rotation vector :

Vector(0, 60, 0)

what do I have to do to it to apply the 60 degree rotation about its x-axis to get the same result ?

(I normally use quaternions but its not worth it in this case as I simply need the above rotation as a constant ...)

Thanks

Andrew

Andrew Jameson
03-21-2006, 07:59 AM
Please ignore - brain's recovered and I'm talking rubbish !!