Lesson 10, Maze Navigation
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!
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?
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?
Moved to the Nehe forum (where they''ll know what lession 10 is about).
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement