MCPcopy Create free account
hub / github.com/axmolengine/axmol / removeBody

Method removeBody

core/physics/PhysicsWorld.cpp:625–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625void PhysicsWorld::removeBody(int tag)
626{
627 for (auto&& body : _bodies)
628 {
629 if (body->getTag() == tag)
630 {
631 removeBody(body);
632 return;
633 }
634 }
635}
636
637void PhysicsWorld::removeBody(PhysicsBody* body)
638{

Calls 3

getTagMethod · 0.80
eraseObjectMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected