Slice shape from box2d

how i can do that like that game:
Play Route Digger | Games | CBC Kids

1 Like

I think that's drawing a squiggle or path of some sort and then animating the sphere along the path, after hit test , and another hittest at the end. In physics.

They use box2d (not in ZIM)

Not sure... dig into it! (hahaha)

If I were not worried about performance, I would make a grid of static objects and remove them as you mouseover while pressing.

In the past, I made the maze with local walls... you could possibly leave walls as you go... if there is dirt where you go - do not leave walls if there is no dirt underneath. Also erase walls if the digging circle hits them... does that make sense?

i found that:
emanueleferonato have a lot of answers for box2d and i thinks its be great on ZIM too.
i try to make it myself but not work for me :frowning:

as3 example:

How to create destructible terrain using Box2D – step 1 | Emanuele Feronato

How to create destructible terrain using Box2D – step 2 | Emanuele Feronato

Digging into Box2D destructible terrain final version. Test it and enjoy. | Emanuele Feronato

Where’s my water Flash + Box2D demo | Emanuele Feronato

From PNG to Box2D – first attempt | Emanuele Feronato

Create non-convex, complex shapes with Box2D | Emanuele Feronato

and a lot of box2d idea:
Box2D | Emanuele Feronato

Yes... we have it on our todo list to look at these and give him a contact... let us know if what you try works.

My attempts were unsuccessful

1 Like