Jump to content
  • Advertisement


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


Movement on terrain (physics/math people do look)

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

Ok this problem will not stop plaguing me. What can I use to simulate movement up/down a hill? I tried several things but I can''t seem to get it right. My current idea is to use the movement vector without the terrain (vVector) and take the dot product of that and the plane normal (to get a directional derivative). The only problem is that it doesn''t work. Sometimes I get sucked through the terrain for no apparent reason. Does someone want to help me out with my theory? I have limited knowledge of physics/math unfortunately . www.geocities.com/vsage3/projects.html is where the source code is if that helps you. The function in question is the MoveCamera function in Camera.cpp.

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!