Box2d bounding box for cocos2d child sprite.

How do I remove a fixture from a body?

For example, a ship component fixture gets hit with a bullet and should be destroyed. How do I get rid of that fixture.

thanks.
This way:

Code:
body->DestroyFixture(theFixture);
theFixture = null;


By the way, you can find all the methods a b2Body* has together with some useful info in the b2Body.h file from the Box2D source code.

Original thread: https://box2d.org/forum/viewtopic.php?t=6815