Added ray collision detection in leaf nodes. Fixed possible bug in OctTree::AddBox

This commit is contained in:
William Moberg
2015-12-03 19:25:40 +01:00
parent af5b3a9302
commit 8e21b1fe35
2 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ private:
//start of Collision test, set on check, don't check if set already. Solves duplicate boxes in tree.
AABB m_Box;
bool rayCollides(const Ray& ray, Output& data, const OctTree* const tree) const;
bool rayCollides(const Ray& ray, Output& data) const;
inline bool hasChildren() const;
int childIndexContainingPoint(const glm::vec3& point) const;
};