Basic collisions using Octree. Seems buggy over octree boundaries.

This commit is contained in:
2016-01-13 15:34:43 +01:00
parent 8ed4ba1219
commit d6ef527f25
33 changed files with 290 additions and 267 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
#define Octree_h__
#include "../Common.h"
#include "Core/AABB.h"
#include "AABB.h"
class Ray;
@@ -14,7 +14,7 @@ public:
float CollideDistance;
};
Octree();
Octree() = delete;
~Octree();
//For the root Octree, [octreeBounds] should be a box containing the entire level.
Octree(const AABB& octreeBounds, int subDivisions);