Weird Super-Mass Bug in Testbed, or is there?

I have the latest SVN Box2D and I was playing with masses for the bomb, and I found that if you set the bomb's mass to something ridiculous (like 500 or 5000) and launch it at the pyramid, some weird stuff happens.

I don't know if it's a bug or a limitation or what.
Physics engines often have trouble with large mass ratios and Box2D is no different.

BTW, what happens in real life if you shoot a 16 ton weight into a stack of empty crates?

On the other hand, in games we are in control of the relative masses of things.
The main bug I'm talking about is when the bomb hits a box that is flying in mid air, stops dead then carries on moving at it's previous speed.
Ah, well that's different. There's probably some issues with continuous collision detection that need to be fixed. Thanks!
No problem 🙂

Super-fast, supermasses are fun 😁

Now all you need is gravity distortion and spaghettification 😛
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! 🙂
Yeah, stalling might be a problem. I will be reducing the effect by using core shapes and performing collision response at the time of impact. We'll see how it goes. There's still a lot of work to be done.

Original thread: https://box2d.org/forum/viewtopic.php?t=172