Original Post
I need this asteroid object to rotate around the center of the screen, but it currently rotates around its own origin. How do I set it so it will rotate about the central axis?
this the the current rendering code:
glPushMatrix();
glTranslatef(xtrans, ytrans, -6);
glRotatef(-rot,0,0,1);
draw_asteroid();
glPopMatrix();
thanks in advance