mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-09-26 03:56:14 +00:00
- Improved unconnected off-mesh connection debug draw
- Fixed connecting off-mesh links which connect to the same tile x,y but different layer - Fixed crash in navmehs query closestPointOnPolyInTile() when the poly is off-mesh connection
This commit is contained in:
@@ -1053,7 +1053,7 @@ void NavMeshTesterTool::handleRender()
|
||||
if (m_straightPathFlags[i] & DT_STRAIGHTPATH_OFFMESH_CONNECTION)
|
||||
col = offMeshCol;
|
||||
else
|
||||
col = pathCol;
|
||||
col = spathCol;
|
||||
|
||||
dd.vertex(m_straightPath[i*3], m_straightPath[i*3+1]+0.4f, m_straightPath[i*3+2], col);
|
||||
dd.vertex(m_straightPath[(i+1)*3], m_straightPath[(i+1)*3+1]+0.4f, m_straightPath[(i+1)*3+2], col);
|
||||
@@ -1070,7 +1070,7 @@ void NavMeshTesterTool::handleRender()
|
||||
else if (m_straightPathFlags[i] & DT_STRAIGHTPATH_OFFMESH_CONNECTION)
|
||||
col = offMeshCol;
|
||||
else
|
||||
col = pathCol;
|
||||
col = spathCol;
|
||||
dd.vertex(m_straightPath[i*3], m_straightPath[i*3+1]+0.4f, m_straightPath[i*3+2], spathCol);
|
||||
}
|
||||
dd.end();
|
||||
|
||||
Reference in New Issue
Block a user