Relocated AABB and Ray in Collision.h to their own files. Started implementation on OctTree.

This commit is contained in:
William Moberg
2015-12-03 17:03:27 +01:00
parent c698149bdd
commit 2f13f5da7a
8 changed files with 272 additions and 31 deletions
+11
View File
@@ -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()
{}