Relocated AABB and Ray in Collision.h to their own files. Started implementation on OctTree.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user