Jump to content
  • Advertisement

Archived

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

toughguy

Lesson 10, Maze Navigation

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

I am having trouble with the navigation through the maze in Lesson 10. I understand the rotation part, but am confused when it comes to the forward and backwards movement, or the translation part. Could someone explain the code inside the ''if (keys[VK_UP])'' and DOWN statement. Not so much the head bob, more just the core translation. What the hell is the ''heading'' variable? Where did that come from? I am close, just need a little better explanation. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=10,

sorry! i got to the messageboard through nehe productions, thought it was a board for just the site. im a moron. anyone still want to help?

Share this post


Link to post
Share on other sites
All the translate does is move the "level" around you...

Your really stationary. Say you hit forward, it just moves the quads towards your back.

persionally I don''t like that method of movement. The best is a camera class that will move via the glLookat.

There is a camera tutorial on the main page, aswell as at www.gametutorials.com

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!