Jump to content
  • Advertisement

Archived

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

dadio

space movement

This topic is 6216 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
Advertisement
Hi, I encounterd the same problems. I recommend that you read the tutorial at Enio's page:
http://www.iol.ie/~hennessye/main.htm

Edited by - TheMummy on June 13, 2001 4:44:00 AM

Share this post


Link to post
Share on other sites
I had that problem a week ago, too...
Here you could find the source-code of an simple Spaceship simulator:
http://www.btinternet.com/~matt.lisa/ogl1.htm

The rotation is done with Quaternions... the best solution I saw!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!