Jump to content
  • Advertisement

Archived

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

Gammastrahler

Problem with Rotation!

This topic is 6204 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

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

Share this post


Link to post
Share on other sites
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

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!