Verlet physics

Topics: Developer Forum
Apr 5, 2010 at 8:48 PM

Hi All,

        Is it possible to do cloth like simulation http://www.custom-logic.com/exp/cloth/cloth.html with box2d. I seen this article on http://www.sgtconker.com/2009/10/article-verlet-integration-particles/ would i better trying with silversprite or has anyone experience doing verlet in box2d?

Thanks,

slyi

Apr 16, 2010 at 11:44 PM

I'd think so. I don't know what the easiest way is, but here you go. Maybe create a 2d array of bodies and connect a spring to each neighbor. Another way would be clever use of the chain factory. As long as you aren't talking about collisions, I don't see what the problem would be.