This is caused by time not being conserved in the continuous physics algorithm. It seems to be more of a problem for very heavy objects that don't have their velocities changed much on collision, because when they hit light objects they often have several sequential impacts over the course of a few time steps. This would be fine with a normal weight object whose velocity would change substantially anyways (you get a hiccup and it moves with a different velocity, so it's not too noticeable), but with a heavy one, you get a hiccup interrupting an essentially constant velocity, so it stands out more.
I think generally, CCD will be difficult to apply to extremely heavy bodies - a huge heavy box careening through a soup with thousands of small particles in one step would either require the engine to calculate thousands of impacts, thus grinding to a halt, or freezing the big body at each impact, which means it would never get very far. The only other option I can think of is to handle this type of case by colliding all the small bodies against the swept volume of the large body and letting the large one complete its step, but this would require a lot of tweaking to get right.
Quote:
Now all you need is gravity distortion and spaghettification 😛
Spaghettification, eh? Hehe, yeah, I'm with you, as long as it's implemented by modeling metric deformation (with back reaction due to matter, of course) and not this new fangled force approximation that the kids seem to love.
General relativity sucks in two dimensions, though, it's just a little too boring (what good is a theory in a context where you can actually solve most of the equations? Sheesh!). Maybe Box2d should add QFT support first, then we could have some
real fun!
🙂