PDA

View Full Version : rotation



03-21-2000, 03:43 PM
Hi,

I've a 3D object which is transformed correctly (I believe) to be rotated
by keeping the co-ordinate axis fixed. Please let me know how to do this.
Any information related to this is appreciated.

Thanks.

Bob
03-22-2000, 03:18 AM
Hello

Not sure if I get you right here, but you want to translate an object, then rotate it about it's own local coordinate system?

If so, you have to FIRST rotate, THEN translate. Like this.

glRotatef(insert_rotation_here);
glTranslatef(insert_translation_here);

Bob