Search code examples
box2dgame-physics

box2d. platformer. destructible terrain


So, I want to create a platformer with destructible terrain. I use a physics engine box2d for java. I have an idea to do a lot of small static balls that will be destroyed at some impact on them. Are there better ideas? Not much this will slow down performance? enter image description here

And the second question. If I do so, how can fill this area picture? Something similar to the style of worms.

enter image description here


Solution

  • Beside the fact that your idea should also work it might have a lack of resolution which makes me prefer this method.