hiulit / Godot-3-2D-Destructible-Objects

A script that takes a sprite, divides it into blocks and makes them explode 💥!
MIT License
393 stars 27 forks source link

Add Voronoi regions #1

Open hiulit opened 5 years ago

hiulit commented 5 years ago

To have a better scattering.

D-zZ1v8XUAAg_Gf

We will need a way to create sprites and its respective collisions following this pattern.

Xrayez commented 5 years ago

I think this could be achieved via Delaunay triangulation which should be available in 3.2. 😉 godotengine/godot#29127.

Delaunay_triangulation relationship with the Voronoi diagram.

hiulit commented 5 years ago

That looks amazing! Thanks! We'll wait for 3.2 then ;) I would still need help though, hehe!

Btw, I've just realized that while researching how to create polygons out from sprites I came across this project that it turns out it's yours! https://github.com/Xrayez/godot-mesh-instance-collision-2d

Xrayez commented 5 years ago

Yeah, I got notified when you starred my project and then I've noticed this. 🙂

I have my own ecosystem of destructible stuff so I'm not sure whether I'd contribute, but always nice to see destructible stuff in Godot, perhaps this would be useful for some destructible parts that should truly break into pieces (like glass), so we'll see.