Relocated AABB and Ray in Collision.h to their own files. Started implementation on OctTree.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "Core/AABB.h"
|
||||
|
||||
AABB::AABB(const glm::vec3& minPos, const glm::vec3& maxPos)
|
||||
: m_MinCorner(minPos)
|
||||
, m_MaxCorner(maxPos)
|
||||
, m_Center(0.5f * (maxPos + minPos))
|
||||
, m_HalfSize(0.5f * (maxPos - minPos))
|
||||
{}
|
||||
|
||||
AABB::~AABB()
|
||||
{}
|
||||
Reference in New Issue
Block a user