Jump to content
  • Advertisement
Sign in to follow this  
JohnLamock

Moving over a terrain.

This topic is 4491 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 friends! I'm trying to code a little bmx game, and I'm having some problems with the "terrain interaction" part. I want to make a bike that be able to move over a irregular terrain and over ramps, and this kind of things... I was trying to code, but the result was not that good, actually it was very bad. Sometimes the bike was going in the terrain and sometimes it was floating on the sky. I was looking for some text that can show some information about this kind of problem. Thanks in advance! Regards, John.

Share this post


Link to post
Share on other sites
Advertisement
All you need to do is figure out the plane that each tire is on at the time, figure out the height using known vertices and the equation for a plane, and update the position. This will cause the tires to stick to the terrain. If you want physics with jumping and everything, I'd suggest just looking at Newton Dynamics. It didn't take me long at all to start getting physical interaction with it.

Hopefully something I said helped [smile].

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!