Jump to content
  • Advertisement
Sign in to follow this  
Kinju

Moving a car over a ground

This topic is 4657 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 all, I'm making a basic 3D game with a car over a ground. I don't want simulate suspensions but a minimum of reality So, I have the absolute coords of the 4 wheels of my car. With picking, I have the ground's heights and the ground's normals for the 4 wheels. Actualy, the car move like if the ground was just a plane, but now, I want to change pitch, roll and Y in order to "stick" the car on the ground. Is there a tutorial for the basic physics algo to do this? Thanks

Share this post


Link to post
Share on other sites
Advertisement
If you want it really basic I'd just get the height and normal (ie the plane equation) under the centre of the car and base it on that. Since you have 4 wheels you can't force them to all be on the ground at once.

But do you want the car to be able to jump, or should it stick to the ground at all times - is it like how units move in an RTS or like a car in a driving game?

If you're interested in my suggestion I have code which does just that - PM or email me.

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!