Archived

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

space movement

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m trying to implement a spaceship kind of motion in space. I seem to have a problem... I rotet on all axis: glRotatef(roll, 0, 0, 1.0f); glRotatef(yaw, 0, 1.0f, 0); glRotatef(pitch, 1.0f, 0, 0); and then translate for the drawing. it works funny. the rotations of the yaw and pitch are reletive to the original position, and not to the position after the roll rotation. does anyone have an idea how to implement this kind of motion (just like in a flight simulation)? I''ll be very happy... thx

Share this post


Link to post
Share on other sites