| 12345678910111213141516171819202122232425262728293031323334 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <AnKi/Physics/PhysicsObject.h>
- #include <AnKi/Physics/PhysicsWorld.h>
- namespace anki {
- PhysicsFilteredObject::~PhysicsFilteredObject()
- {
- for(PhysicsTriggerFilteredPair* pair : m_triggerFilteredPairs)
- {
- if(pair == nullptr)
- {
- continue;
- }
- pair->m_filteredObject = nullptr;
- if(pair->shouldDelete())
- {
- getAllocator().deleteInstance(pair);
- }
- }
- }
- HeapAllocator<U8> PhysicsObject::getAllocator() const
- {
- return m_world->getAllocator();
- }
- } // end namespace anki
|