Skip to main content
gamedev.net
🔒 Locked

coordinates (matrices?)

Started by Stef3d Jan 4, 2002 at 3:45 PM 0 replies 200+ views
Original Post
Stef3d
Stef3d
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.