From 5686f4a83c0462c3c07d5d2254a186f3865919e0 Mon Sep 17 00:00:00 2001 From: axelrodR Date: Wed, 26 Feb 2014 21:30:24 +0200 Subject: [PATCH] changed the NavMeshTesterTool so that pathFind and straightPath use the default options (i.e. not any-angle) while sliced path uses the any angle search. --- RecastDemo/Source/NavMeshTesterTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecastDemo/Source/NavMeshTesterTool.cpp b/RecastDemo/Source/NavMeshTesterTool.cpp index 9839d2f..5f6b92f 100644 --- a/RecastDemo/Source/NavMeshTesterTool.cpp +++ b/RecastDemo/Source/NavMeshTesterTool.cpp @@ -880,7 +880,7 @@ void NavMeshTesterTool::recalc() m_npolys = 0; m_nstraightPath = 0; - m_pathFindStatus = m_navQuery->initSlicedFindPath(m_startRef, m_endRef, m_spos, m_epos, &m_filter); + m_pathFindStatus = m_navQuery->initSlicedFindPath(m_startRef, m_endRef, m_spos, m_epos, &m_filter, DT_FINDPATH_ANY_ANGLE); } else {