Last active
April 18, 2016 13:10
-
-
Save takashi1975/391a193c36fd8a32409638beab706b05 to your computer and use it in GitHub Desktop.
Box2d Memo (for Cocos2d-x ver.3.x)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//world ... b2World | |
{ | |
//DestroyBody -> DestroyJoint | |
for (auto body = world->GetBodyList(); body; body = body->GetNext()) | |
{ | |
world->DestroyBody(body); | |
} | |
// for (auto joint = world->GetJointList(); joint; joint = joint->GetNext()) | |
// { | |
// world->DestroyJoint(joint); | |
// } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment