Sign in to follow this  
JohnLamock

Moving over a terrain.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this