The Daily Click ::. Forums ::. Klik Coding Help ::. 2D Top Down Car Physics
 

Post Reply  Post Oekaki 
 

Posted By Message

vetmora120



Registered
  1/7/2010
Points
  281
18th June, 2012 at 6/18/2012 11:20:02 AM -

Hi all,

I'm trying to create a simple but effective car engine. I'm using Box2D v2.0.0 and am trying to avoid using more than one object (ie. not using wheels, just the car body itself). I don't want any complications torque, air resistance, drag, etc, so the speed and acceleration is easy enough. I'm trying to come up with a good formula to make the steering realistic. I have done a bit of research and found the following:

http://engineeringdotnet.blogspot.com.au/2010/04/simple-2d-car-physics-in-games.html

It looks pretty much like what I need. What I can't figure out is how to adapt it to MMF2. Anyone able to give me a hand?

 
The universe of Vetmora.

Sketchy

Cornwall UK

Registered
  11/6/2004
Points
  2479

VIP Member
18th June, 2012 at 6/18/2012 5:05:39 PM -

I wouldn't bother with that article - it's just a very complicated way to do something very simple. You're best bet is going to be to get hold of the example driving game that came with the Chipmunk Phizix extension (or it might even have been Box2d - I forget).

Unfortunately, if you want oversteer/drifting it's still going to be very difficult to do well - and if you don't, then you shouldn't waste your time - a driving game without those is NEVER fun.

 
n/a

vetmora120



Registered
  1/7/2010
Points
  281
19th June, 2012 at 6/19/2012 5:13:24 AM -

Oh, ok then. Both Chipmunk and Box2D have a car example. The Chipmunk one has a lot more in it, though.

How about this article then?

http://www.asawicki.info/Mirror/Car%20Physics%20for%20Games/Car%20Physics%20for%20Games.html

Edited by vetmora120

 
The universe of Vetmora.
   

Post Reply



 



Advertisement

Worth A Click