jericho wrote: ↑10 Sep 2020, 09:25Yep, disabling gravity force along Y axis gives "top down" mode.
What I am implemented at this point is: each vehicle is single rigid body with dimensions in meters (1 map unit equals 4 meters). Mass of the body I take directly from style data, I assume that value in kilograms. Applying forces, impulses and torque on it gives some driving-like mechanics.
Seems like a good start, i assume you already went thru these:
http://www.iforce2d.net/b2dtut/top-down-car/
http://domasx2.github.io/gamejs-box2d-car-example/
https://github.com/signalsin/Racer
One thing needing to be done is that you model each wheel on the car, so maybe next step is to figure out where tyres should be placed relative to center of body. also, does box2d support off-center mass for body?
So.. figure out how Drive Wheel Offset, Steeringwheel Offset place tyre in car, probably similar to doors (they just specify offset from center of body? )