Game crashes when I try to destroy a b2Body, what should I do?
问题 "Assertion failed: (m_bodyCount < m_bodyCapacity), function Add, file libs/Box2D/Dynamics/b2Island.h, line 65." That is what it the crash leaves in the console. [self removeChild:(CCSprite*)body->GetUserData() cleanup:YES]; body->SetTransform(b2Vec2(30, 30), 0); //moving the body out of the scene so it doesnt collide anymore! world->DestroyBody(body); I think im doing the right stuff.. @property (nonatomic, assign) b2Body *body; Here is how i "make it" a property I dont understand why it