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

Method removeShape

core/physics/PhysicsBody.cpp:691–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691void PhysicsBody::removeShape(int tag, bool reduceMassAndMoment /* = true*/)
692{
693 for (auto&& shape : _shapes)
694 {
695 if (shape->getTag() == tag)
696 {
697 removeShape(shape, reduceMassAndMoment);
698 return;
699 }
700 }
701}
702
703void PhysicsBody::removeShape(PhysicsShape* shape, bool reduceMassAndMoment /* = true*/)
704{

Callers 3

removeAllShapesMethod · 0.45
setBodyMethod · 0.45

Calls 6

getTagMethod · 0.80
eraseObjectMethod · 0.80
getIndexMethod · 0.45
getAreaMethod · 0.45
getMassMethod · 0.45
setBodyMethod · 0.45

Tested by

no test coverage detected