cocos2d box2d textured soft body physics
2011/10/29 2 Comments
Download the demo source.
The soft body box2d code + texturing is all wrapped up in the SoftCircle class. I didn’t implement removal of a SoftCircle for this demo, but all you need to do is loop through the stl maps where the joints and bodies have been stored and destroy them.
If you want to change the behavior, modify the joint definition’s frequencyHz & dampingRatio.