Update path iterator code to cope with off-mesh links. findStraightPath() returns now more info so that off-mesh links can de detected.

This commit is contained in:
Mikko Mononen
2010-01-13 21:25:07 +00:00
parent 4ad8dafa40
commit a81223f3bb
9 changed files with 2335 additions and 9470 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ void InputGeom::drawLinks(duDebugDraw* dd, const float s)
for (int i = 0; i < m_nlinks; ++i)
{
float* v = &m_linkVerts[i*3*2];
duDebugDrawArc(dd, v[0],v[1],v[2], v[3],v[4],v[5], 0.25f, duRGBA(255,255,255,192), 2.0f);
duDebugDrawArc(dd, v[0],v[1],v[2], v[3],v[4],v[5], 0.25f, duRGBA(255,255,255,192), 1.0f);
duDebugDrawCross(dd, v[0],v[1]+0.1f,v[2], s, duRGBA(0,0,0,255), 2.0f);
duDebugDrawCross(dd, v[3],v[4]+0.1f,v[5], s, duRGBA(0,0,0,255), 2.0f);
}