As slembcke mentioned in a previous thread there are some problems with top-down simulations right now and how he plans to improve this.
So my intention with this mail is to collect information what would be needed to make top-down simulations work (better).
My reason to do this is that I'm currently working on a networked open source top down racing game, and right now the only thing i use from chipmunk is the collision code (using it very amateurish at that).
Before continuing I need to say that I did not read every possible documentation for chipmunk (yet), so some of the stuff below could be possible already. If so please feel free to correct me
Not to the top-down requirements:
1)
slembcke already mentioned the most important thing:
Area friction?Top-Down Friction - Not sure if there is a better name for this. Currently Chipmunk works really well for games viewed from the side, but not from the top. You can simulate a coin rolling across a table on it's edge, but not sliding on it's face.
I guess this could be implemented by defining an area (could work like inverse collision shapes) that provides the friction and other properties if an object is moved over it. The engine would need to check if an object is inside the area and plly the friction physics etc... to it.
2)
Also: Generic friction for a cpSpace. Should get overwritten by area friction.
3) I'm not sure if that could be solved with joints, but a way to make the direction of e.g. rotatable (relative to the main body) tires for a moving car handled correctly. (i.e. movement is redirected towards the direction of the tires ... at least until friction is not effective any more).
Anybody got more requirements and maybe some suggestions how to ímplement this in chipmunk?
Greetings,
Martin
EDIT: There is some nice information about top-down simulation in chipmunk in this thread: "Simulating vehicle body"
PS: If anybody wants to join the racing project just contact me, there is no official site yet.
It supposed to get somewhere near the original Micro Machines game but with network support and pimped graphics&physics.
I have a basic engine running wit a nice collision map generator (polygons, circles, spawn points) in blender.
The network stuff is more or less running (needs fine-tuning) and the controls themselves still need a lot of tweaking, but that is simply a matter of math&physics-skills and time.