Polygon Exploder and Triangulator

384
Vote up!

App creates star polygons at random locations. A tap on the polygon calls a general-purpose triangulator, adds the triangles as physics bodies, and gives them a spin to simulate an explosion. When all the fragments have flown off the screen, a new star is created.

The triangulator code can easily be snipped for other purposes.

Works with Corona build #: 
2013.2100
Category: 
Contributor: 
bobcook47