mayobutter wrote:
http://www.sideroller.com/tunnel.swf
I just uploaded a new test called EdgeShapes. It doesn't show any of the problems that the SWF demo has. Please try to reproduce your problem in the C++ testbed.
This was one of the bugs with the old system:
http://code.google.com/p/box2d/issues/detail?id=49The problem wasn't specifically fast rotations. The problem was trying to solve islands in the sub-step. It would lead to tunneling when unfavorable forces, geometry, or mass ratios were involved. The old TOI code also allowed shapes to get closer and closer until it gave up. This made it incredibly difficult to debug because tunneling was the result of several accumulated inaccuracies.
The new system is much more focused. I have a single moving body that I'm trying to solve. I don't have to worry about the effects of other moving bodies or joints. The new system is trivial to parallelize in the non-bullet case. Performance should also be improved.
BorisTheBrave wrote:
Would I be right in saying that if a dynamic body was shot at a wall made of small, fast kinematic bodies, it would be unable to get through, but equally it wouldn't register a collision with anything.
If both bodies are moving fast, you can get tunneling.
BorisTheBrave wrote:
Can bullets tunnel through other bullets? It looks to me if they can, even without rotation and if one body is stationary. That seems fairly problematic - bullets were nice because you could increase the amount of CCD in use by turning on more and more bullets. I guess now they are just good for literal bullets.
Fast moving bullets should not tunnel through any slow moving bodies. I do want bullets to be used for fast vs slow. For now, I'm giving up on fast vs fast. I never saw a big importance for fast vs fast.
BorisTheBrave wrote:
OTOH, it looks plausible that the new system can be done in a somewhat parallel fashion, which is cool.
Yes, the old sub-stepping approach would likely become a bottleneck in a multi-threaded implementation.