How to decompose a rectangular shape in a Voronoi diagram, only generating convex shapes?
- by DevilWithin
I think this is a very straighforward question, lets say i have a building in 2D, a rectangle shape. Now i want to decompose that area in a lot of convex shapes, as seen in a voronoi diagram, or closely like it, just so I can add those shapes to the physics engine, and have a realistic destruction.
Bonus: Possible suggestions on how to make the effect more dynamic and interesting.
Please keep in mind we re talking about realtime calculations..