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
+2 -8
View File
@@ -1,15 +1,9 @@
#include "Core\Collision.h"
#include "Core/Collision.h"
#include "Engine/GLM.h"
namespace Collision
{
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))
{ }
bool RayAABBIntr(const Ray& ray, const AABB& box)
{
glm::vec3 w = 75.0f * ray.Direction;