// Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include #include #include namespace anki { void PhysicsPtrDeleter::operator()(PhysicsObject* ptr) { if(ptr == nullptr) { return; } PhysicsWorld& world = ptr->getWorld(); world.destroyObject(ptr); } } // end namespace anki