Hi,
I've got this piece code:
and that:Code :glTranslatef( -0.5f, 0, -0.5f ); glRotatef( yRot, 0, 1, 0 ); glTranslatef( -0.5f, 0, -0.5f );
Those pieces contains rotating two objects aroud their own axises, one object is translated with XZ -0.5f, -0.5f and the second is 0.5f, 0.5f. Everything works fine, but after rotation I always translate them in negative direction with -0.5f, -0.5f. But why? First object is located in different place than the second after first translation ???Code :glTranslatef( 0.5f, 0, 0.5f ); glRotatef( yRot, 0, 1, 0 ); glTranslatef( -0.5f, 0, -0.5f );
[This message has been edited by glYaro (edited 07-29-2003).]





