• Popular Now

• 14
• 12
• 9
• 10
• 13

Archived

This topic is now archived and is closed to further replies.

axis of rotation

This topic is 5916 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

I am working on a small asteroids type game. I am having trouble figuring out how to rotate and trnslate the ship based on its own coordinate axis. when i do this: glRotatef(rot,0,0,1); glTranslatef(0,ytrans,0); draw_ship(); it uses the world coordinate axis for its rotation. how do I rotate around the ships axis?

Share on other sites
Hi,

GLLoadIdentity();rotateftranslatef{Draw}[/CODE]Hope I could help you             Sebo