Aircraft Roll

Started by
0 comments, last by datalurkur 15 years, 9 months ago
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
Advertisement
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.

This topic is closed to new replies.

Advertisement