Sign in to follow this  

2D Side View Vehicle Physics

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

I have been searching for ages but cannot seem to find an article for 2D vehicle physics (like in this game: http://dirt-bike.freeonlinegames.com/ ). Can anyone share any links that might be helpful to me?

Share this post


Link to post
Share on other sites
that looks to be a clone of Elastomania. If you like it, look for the original :)

As for the tech behind that kind of games, it's rigid bodies, basic constrains and springs. It's not straight forward, but if you start with Chris Hecker's articles, that will give you an idea.

Also, I have a similar sort of demo, but using a completely different system.

http://uk.geocities.com/olivier_rebellion/wh1.zip

It's using the particle + stiff constrains as explained by jakobsen in his chracter physics article.

Share this post


Link to post
Share on other sites
I used to play elasto mania all the time. :P

The thing I really need help on is how to get the wheels to deal with friction.

I have most other things under control really.

EDIT: I had a look at your demo. Would the best way to do the wheels be to do what you did for the car?

Share this post


Link to post
Share on other sites
probably not.

I'd stick with rigid bodies, but friction is 'complicated'. :)


A simplistic model is explained here

http://www.gamedev.net/community/forums/topic.asp?topic_id=482505

but i would use pacejka's magic formula for more accurate and predictable results

http://www.racer.nl/reference/pacejka.htm

Share this post


Link to post
Share on other sites
Theres no need to use the Pacejka formula for a side on view car / bike physics.

The Pacejka formula calculates the forces on the tires given the current long and lat slip angles.

The lateral slip angle obviously isnt necessary and the long slip angle would just over complicate things.

Just use standard newtonian physics equations. Force, Acceleration, Velocity ect.

The term to seach for would be Constraint physics or VERLET Physics.

KJM

Share this post


Link to post
Share on other sites

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