The ugly and humble beginnings of path following and multi-agent navigation code.

This commit is contained in:
Mikko Mononen
2010-08-12 12:54:00 +00:00
parent 474a3ddc67
commit 7d8fe75de1
25 changed files with 8777 additions and 377 deletions

View File

@@ -174,7 +174,7 @@ static void drawMeshTile(duDebugDraw* dd, const dtNavMesh& mesh, const dtMeshTil
if ((flags & DU_DRAWNAVMESH_CLOSEDLIST) && mesh.isInClosedList(base | (dtPolyRef)i))
col = duRGBA(255,196,0,220);
else
col = duDarkenColor(duIntToCol(p->area, 220));
col = duDarkenCol(duIntToCol(p->area, 220));
const dtOffMeshConnection* con = &tile->offMeshCons[i - tile->header->offMeshBase];
const float* va = &tile->verts[p->verts[0]*3];