Sign in to follow this  
mbanghart

Aircraft Roll

Recommended Posts

I was wondering if anyone has some source code to implement roll? I am building a simulator and my code doesnt want to work properly. I can post if wanted - but its long. If anyone has a solution or pseudocode I can look at, it might help me. Thanks Marc

Share this post


Link to post
Share on other sites
You didn't really give much detail, but I think the command you're looking for is glRotate. If I wanted to draw something rotated, my code might look like this:

glPushMatrix();
glRotatef(45, 1, 0, 0); // Rotate 45 degrees on the x-axis
DrawThing();
glPopMatrix();

The push and pop are just there to ensure that this rotation doesn't mess up any other geometry.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this