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).
This commit is contained in:
parent
4b43c33ae1
commit
232187b9d6
@ -211,7 +211,7 @@ public:
|
|||||||
/// @returns The status flags for the query.
|
/// @returns The status flags for the query.
|
||||||
dtStatus initSlicedFindPath(dtPolyRef startRef, dtPolyRef endRef,
|
dtStatus initSlicedFindPath(dtPolyRef startRef, dtPolyRef endRef,
|
||||||
const float* startPos, const float* endPos,
|
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.
|
/// Updates an in-progress sliced path query.
|
||||||
/// @param[in] maxIter The maximum number of iterations to perform.
|
/// @param[in] maxIter The maximum number of iterations to perform.
|
||||||
|
@ -654,7 +654,7 @@ void NavMeshTesterTool::handleUpdate(const float /*dt*/)
|
|||||||
|
|
||||||
m_navQuery->findStraightPath(m_spos, epos, m_polys, m_npolys,
|
m_navQuery->findStraightPath(m_spos, epos, m_polys, m_npolys,
|
||||||
m_straightPath, m_straightPathFlags,
|
m_straightPath, m_straightPathFlags,
|
||||||
m_straightPathPolys, &m_nstraightPath, MAX_POLYS);
|
m_straightPathPolys, &m_nstraightPath, MAX_POLYS, DT_STRAIGHTPATH_ALL_CROSSINGS);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pathFindStatus = DT_FAILURE;
|
m_pathFindStatus = DT_FAILURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user