I’m curious, what is the maximum speed a 1,1,1 cube can go before we start to encounter physics problems such as passing through walls. Assuming we stick with the default physics timestep, and the object has continuous collision detection. Is there any data on this?
Thanks!
Depends on how thick the walls are and what kind of collision detection you’re using.
If a 1x1x1 cube moves at 100 meters per second and there’s 1/0.02 = 50 physics updates per second (default timestep), the cube will move 100/50 = 2 meters per physics update, leaving a empty gap of 1 meter between the current frame and its previous one.
So when using no CCD it would fail to collide against anything that’s thinner than 1 meter.
Using speculative continuous collision detection it would reliably detect the collision against pretty much anything, however collision response may fail to be accurate under some circumstances (ghost contacts).
Using linear sweep collision detection it might fail entirely at pretty much any speed if the object and/or the wall are rotating.
See: Unity - Manual: Continuous collision detection (CCD)