I'm working on a game where the scale seems quite difficult for Box2D to handle. I have bodies with a minimum size of 1 meter across travelling with velocities of up to 5000 m/s. My experiments result in a maximum velocity in Box2D of ~80 "box units"/second, so I introduced scaling to deal with it. But at 1 meter = 0.01 "box units", I suffer from a lack of precision (collisions occur several meters away from objects).
It would be acceptable if only high-speed collisions occurred with this lack of precision, but it happens even when two objects with very low velocity collide. It seems Box2D simply doesn't behave well with objects that are about 0.01 "box units" in size.
So, in summary: I want objects to travel a few thousand times their own length per second without sacrificing precision (at least in low velocity collisions).
Is there a way to get both the velocity and the precision I want?
It would be acceptable if only high-speed collisions occurred with this lack of precision, but it happens even when two objects with very low velocity collide. It seems Box2D simply doesn't behave well with objects that are about 0.01 "box units" in size.
So, in summary: I want objects to travel a few thousand times their own length per second without sacrificing precision (at least in low velocity collisions).
Is there a way to get both the velocity and the precision I want?