void iPhysicsWorld::DestroyShape(iCollideShape *apShape) { apShape->DecUserCount(); if(apShape->HasUsers()==false) { STLFindAndDelete(mlstShapes, apShape); } }
void cGraphicsDrawer::DestroyGfxObject(cGfxObject* apObject) { STLFindAndDelete(mlstGfxObjects,apObject); }
void iEntity3D::RemoveCallback(iEntityCallback *apCallback) { STLFindAndDelete(mlstCallbacks, apCallback); }
void iPhysicsWorld::DestroyController(iPhysicsController *apController) { STLFindAndDelete(mlstControllers, apController); }
void iPhysicsWorld::DestroyCharacterBody(iCharacterBody* apBody) { STLFindAndDelete(mlstCharBodies, apBody); }
void iPhysicsWorld::DestroyJoint(iPhysicsJoint* apJoint) { STLFindAndDelete(mlstJoints, apJoint); }
void cPhysics::DestroyWorld(iPhysicsWorld* apWorld) { STLFindAndDelete(mlstWorlds, apWorld); }