How to decompose a rectangular shape in a Voronoi diagram, only generating convex shapes?

Posted by DevilWithin on Game Development See other posts from Game Development or by DevilWithin
Published on 2012-06-06T23:05:25Z Indexed on 2012/06/07 4:48 UTC
Read the original article Hit count: 169

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..

© Game Development or respective owner

Related posts about procedural-generation

Related posts about polygon