Emanuele Feronato gets all dicey: "Back in 2011 I tried to build a script to slice, split and cut Box2D bodies using AS3.
This happened eight years ago, which represent a couple of centuries or even more in game development.
Back to our days with current technologies, I tried to do it with Phaser and Matter.js. Before you jump to the example and the source code, I have to say the result works like a charm thanks to the awesome PolyK which is seven years old but fortunately geometry doesn’t age like software does.
Thanks to PolyK, now you can slice your physics bodies created with Matter.js in Phaser. This is quite a milestone, because it opens a door leading you to new concepts of HTML5 game design.
Ok, let’s see the example in action."