worked on nav-meshes

This commit is contained in:
2018-01-10 08:31:14 +01:00
parent ca6fed5371
commit 3fc9688825
9 changed files with 165 additions and 36 deletions

View File

@@ -17,7 +17,7 @@ private:
template<typename> friend class NavMesh;
int _neighbors[3];
NavMeshTriangle* _neighbors[3];
int _numNeighbors;
/** precalculated stuff */
@@ -51,6 +51,10 @@ public:
}
decltype(std::begin(_neighbors)) begin() {return std::begin(_neighbors);}
decltype(std::end(_neighbors)) end() {return std::end(_neighbors);}
Point3 getA() const {
return p1;
}