From 232187b9d631caa1de09e3edec6a073bb0a0aaf1 Mon Sep 17 00:00:00 2001 From: axelrodR Date: Thu, 27 Feb 2014 14:21:09 +0200 Subject: [PATCH] changed the default options of the pathfinder to 0 (i.e. no raycasts), changed the the tester tool to display all points along the sliced path (a better default for non flat terrain). --- Detour/Include/DetourNavMeshQuery.h | 2 +- RecastDemo/Source/NavMeshTesterTool.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Detour/Include/DetourNavMeshQuery.h b/Detour/Include/DetourNavMeshQuery.h index a01ee8d..427e4a9 100644 --- a/Detour/Include/DetourNavMeshQuery.h +++ b/Detour/Include/DetourNavMeshQuery.h @@ -211,7 +211,7 @@ public: /// @returns The status flags for the query. dtStatus initSlicedFindPath(dtPolyRef startRef, dtPolyRef endRef, const float* startPos, const float* endPos, - const dtQueryFilter* filter, const unsigned int options=DT_FINDPATH_ANY_ANGLE); + const dtQueryFilter* filter, const unsigned int options=0/*DT_FINDPATH_ANY_ANGLE*/); /// Updates an in-progress sliced path query. /// @param[in] maxIter The maximum number of iterations to perform. diff --git a/RecastDemo/Source/NavMeshTesterTool.cpp b/RecastDemo/Source/NavMeshTesterTool.cpp index 5f6b92f..5bb363d 100644 --- a/RecastDemo/Source/NavMeshTesterTool.cpp +++ b/RecastDemo/Source/NavMeshTesterTool.cpp @@ -654,7 +654,7 @@ void NavMeshTesterTool::handleUpdate(const float /*dt*/) m_navQuery->findStraightPath(m_spos, epos, m_polys, m_npolys, m_straightPath, m_straightPathFlags, - m_straightPathPolys, &m_nstraightPath, MAX_POLYS); + m_straightPathPolys, &m_nstraightPath, MAX_POLYS, DT_STRAIGHTPATH_ALL_CROSSINGS); } m_pathFindStatus = DT_FAILURE;