Archived

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

dadio

space movement

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
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