   Rotation along a defined axis
  Hi, I would like to rotate a 2d object through the center, but I don't want to put 0,0 in the center and change my points to fit around that. So, Is there a way to change the location of the axis that this object rotates along?Thanks,Jared   
  Use glTranslate, translate the object in the center, rotate, and then retranslate it... like thisglTranslate(center)glRotate()glTranslate(-center)   ;  i do it this waypseudocode:translate x,y,zrotatetranslate -x,-y,-z;  Maybe I didn't make myself too clear...My current object is rotating around point (0,0) on the object.  I need to rotate it around the point (1260,1194).Picture a rectangle rotating on the lower-left corner.  I want it to rotate on the center of the rectangle.Any easy ways?;Quote:Original post by jared168Any easy ways?BladeWise and Eitsch just told you how.The problem is that the origin (which is what glRotate always rotates around) is at the corner of the sprite.  You need to translate it to the center, then rotate, and translate it back.   