Renamed all instances of 'extents' to 'halfExtents' (#279)

This commit is contained in:
aymarfisherman
2017-08-20 12:05:51 -03:00
committed by Jakob Botsch Nielsen
parent 840c100639
commit 7cca61dc41
16 changed files with 66 additions and 61 deletions

View File

@@ -252,10 +252,10 @@ void NavMeshPruneTool::handleClick(const float* s, const float* p, bool shift)
m_flags->init(nav);
}
const float ext[3] = {2,4,2};
const float halfExtents[3] = { 2, 4, 2 };
dtQueryFilter filter;
dtPolyRef ref = 0;
query->findNearestPoly(p, ext, &filter, &ref, 0);
query->findNearestPoly(p, halfExtents, &filter, &ref, 0);
floodNavmesh(nav, m_flags, ref, 1);
}