cocos2d box2d textured soft body physics

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.

Advertisements

2 Responses to cocos2d box2d textured soft body physics

  1. Good information and extremely enlightening. Thanks for taking the time to write it and post it!

  2. Pingback: box2d 말랑말랑 바디 » Garden

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: