void EnableDeactivation(bool enable){ if (!enable) { if (mSelf->getActivationState() != DISABLE_DEACTIVATION) mSelf->setActivationState(DISABLE_DEACTIVATION); } else { if (mSelf->getActivationState() == DISABLE_DEACTIVATION) mSelf->forceActivationState(ACTIVE_TAG); } }
// make sure mColProvider is valid. void ReAddRigidBodyFromWorld(){ mSelf->forceActivationState(ACTIVE_TAG); }
void RemoveRigidBodyFromWorld(){ mSelf->forceActivationState(WANTS_DEACTIVATION); }