14 lines
396 B
C++
14 lines
396 B
C++
#include "Collision/FillOctreeSystem.h"
|
|
|
|
void FillOctreeSystem::Update(double dt)
|
|
{
|
|
m_Octree->ClearDynamicObjects();
|
|
}
|
|
|
|
void FillOctreeSystem::UpdateComponent(EntityWrapper& entity, ComponentWrapper& component, double dt)
|
|
{
|
|
boost::optional<EntityAABB> absoluteAABB = Collision::EntityAbsoluteAABB(entity);
|
|
if (absoluteAABB) {
|
|
m_Octree->AddDynamicObject(*absoluteAABB);
|
|
}
|
|
} |