// Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors. // All rights reserved. // Code licensed under the BSD License. // http://www.anki3d.org/LICENSE #include #include namespace anki { PhysicsFilteredObject::~PhysicsFilteredObject() { for(PhysicsTriggerFilteredPair* pair : m_triggerFilteredPairs) { if(pair == nullptr) { continue; } pair->m_filteredObject = nullptr; if(pair->shouldDelete()) { deleteInstance(PhysicsMemoryPool::getSingleton(), pair); } } } } // end namespace anki