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

Method setEnabled

core/physics/PhysicsBody.cpp:762–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762void PhysicsBody::setEnabled(bool enable)
763{
764 if (_enabled != enable)
765 {
766 _enabled = enable;
767
768 if (_world)
769 {
770 if (enable)
771 {
772 _world->addBodyOrDelay(this);
773 }
774 else
775 {
776 _world->removeBodyOrDelay(this);
777 }
778 }
779 }
780}
781
782bool PhysicsBody::isResting() const
783{

Callers

nothing calls this directly

Calls 2

addBodyOrDelayMethod · 0.80
removeBodyOrDelayMethod · 0.80

Tested by

no test coverage detected