Problem with Rotation!

Started by
0 comments, last by Gammastrahler 22 years, 4 months ago
hi there! i have a problem with rotating a plane around in 3d space, i hope you can help me! i dont know how to exactly explain it, therefore, here is the source and executable... http://www.deep-chill.de/Test.ace thanks a lot !!! Edited by - gammastrahler on December 18, 2001 11:51:19 AM
Advertisement
I don''t have time to dowload your code..but it should look something like this:

at the top of your file...state a global variable:

GLfloat planeRot; //a rotatation float for the your plane

then down below in your GLDrawScene()

glRotatef(planeRot, 1.0f, 0.0f, 0.0f);

glBegin(GL_QUADS); //or whatever your using


//vertices or model code..whatever

glEnd();

planeRot += 0.5; // this moves it every frame


There you go..it''s that easy...well, sort of. I hope you meant a 3d geometric plane rather then an airplane...

Later

This topic is closed to new replies.

Advertisement