The problem that I am having is as follows. When I rotate my spaceship up (pitch) and rotate it at a full 90 degrees in the pitch, it stands up straight, and then try to rotate it again on the y-axis the model now rotates in the same fashion as a roll in the starting position.
Now my question, how can I fix this? How can I make sure my model always rolls when I want it to roll, always pitch when I want it to pitch, etc. Instead of what it does now.
I'm using c++ and opengl.
glMultMatrix()
-compatible matrix that you can substitute in where yourglRotatef()
s were. – genpfault