http://www.youtube.com/watch?v=px0-_fECsDU
I created a destructable terrain engine for box2d in 2.0 and it works perfectly.
When ever the explosion and the terrain overlap, the affected terrain is destroyed and recreated.
However, i've recently converted the project to use box2d 2.1.
As you can see, there is a SIGNIFICANT lag between the debugdraw, and the the actual physics world.
This therefore allows time for bodies resting upon the body being redrawn to fall right through it.
This is very surprising. I assumed the Step function after the explosion, the body creation process would be fully executed instantly.
I hope there's just a setting somewhere to fix this, because otherwise I'll have to go back to 2.0.
Also, the documentation for the changes between 2.0 and 2.1 are nearly non-existant. And the HelloWorld example in the Flash port appears to be broken.
I created a destructable terrain engine for box2d in 2.0 and it works perfectly.
When ever the explosion and the terrain overlap, the affected terrain is destroyed and recreated.
However, i've recently converted the project to use box2d 2.1.
As you can see, there is a SIGNIFICANT lag between the debugdraw, and the the actual physics world.
This therefore allows time for bodies resting upon the body being redrawn to fall right through it.
This is very surprising. I assumed the Step function after the explosion, the body creation process would be fully executed instantly.
I hope there's just a setting somewhere to fix this, because otherwise I'll have to go back to 2.0.
Also, the documentation for the changes between 2.0 and 2.1 are nearly non-existant. And the HelloWorld example in the Flash port appears to be broken.