Sign in to follow this  

Moving a car over a ground

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

This topic is 4375 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.

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