Verlet integration polygons with collision
Thursday, October 9th, 2008I REALLY didn’t think it was gonna be this easy… no complex maths, just a bunch of looping and hitTest, hitTestPoint kind of code
Click for teh Collidin Verlet integratin kick butt multicolored polygons explorer demo

While coding, I was sure I would roast my cpu, maybe run up to 20-30 polygons, but my trusty laptop can churn out 70 shapes at a time before the framerate starts to slowdown. I find it mesmerizing to watch… Cool with 70 shapes, but also very cool to watch a fewer number and actually appreciate the “realism” of the collisions (not perfect, but not bad). It’s late, the code is dirty, time to shut down and watch heroes
…but if you want the dirty source code, ’tis yours
More to come… am really enjoying this… ![]()






