Space Ship

Started by
2 comments, last by Ratalon 21 years, 1 month ago
A space invaders kinda question. I took lesson 9 (the one with the stars falling into the center of the screen) I added in a new texture for my ship, and new variables forward and turn I am having trouble having the ship move forward, after rotating. I can get the ship to move up and down, and rotate in place.. but not move after it has been rotated. Here what I''m working with. (I still have the falling stars in the background) glLoadIdentity(); glTranslatef(0,forward,zoom); glRotatef(turn,0.0f,0.0f,1.0f); //Draw the ship texture
Advertisement
Ahh I need X and Y..
Damn I am no good with math and movement on an angle.
Ahh ha I got it!!

[edited by - Ratalon on March 24, 2003 3:56:41 AM]
quote:Original post by Ratalon
Ahh ha I got it!!

[edited by - Ratalon on March 24, 2003 3:56:41 AM]

Sometimes the best thing to do is write it out...helps you get your thoughts in order.

- sighuh?
- sighuh?

This topic is closed to new replies.

Advertisement