arcanewright / godot-chunked-voronoi-generator

A small project to create chunk based voronoi generation
40 stars 5 forks source link

Thank you for making this! #1

Open Ughuuu opened 1 year ago

Ughuuu commented 1 year ago

Hey, not really an issue, just wanted to say thank you for making this. You wrote in the readme:

Feel free to pull bits and pieces from it, or the whole thing - but let me know if you found it useful!

Didn't know how to write back so I am creating this issue. In any case, my use case for this would be for SoftBody2D. I will explain. I wrote a plugin that makes creating SoftBody2D's easier, but I also wanna be able to cut them. For that I was thinking voronoi would be perfect, as I would know beforehand where the breaking point will be.

Right, so that will be my use case, might use the whole thing to generate a voronoi diagram with polygons, then will use a polygon generated from some initial texture image and cut out points that don't belong to that. Then will add more points(deforming with bones requires points at some interval).

For the softbody, I am creating circles connected with joints from interval to interval. When the softbody breaks, I will have beforehand in the polygon duplicate points in place where voronoi polygons are, and will simply change the weights for bone to no longer control those points(that are overlapping) and will create ilusion that polygon broke(standard technique I think also used for 3d explosions that break walls).

Here is the repo for softbody(so far without breaking thing): https://github.com/Ughuuu/godot-4-softbody2d

Thanks again for this and wish you good luck.