added converting mesh of game object to Detour StatNavMesh (game object is defined by property "navmesh")

This commit is contained in:
Nick Samarin
2010-05-19 01:42:17 +00:00
parent 34058faa0e
commit 56784fcde9
12 changed files with 444 additions and 11 deletions

View File

@@ -496,5 +496,6 @@ bool rcBuildPolyMeshDetail(const rcPolyMesh& mesh, const rcCompactHeightfield& c
bool rcMergePolyMeshDetails(rcPolyMeshDetail** meshes, const int nmeshes, rcPolyMeshDetail& mesh);
bool buildMeshAdjacency(unsigned short* polys, const int npolys, const int nverts, const int vertsPerPoly);
#endif // RECAST_H

View File

@@ -32,7 +32,7 @@ struct rcEdge
unsigned short poly[2];
};
static bool buildMeshAdjacency(unsigned short* polys, const int npolys,
/*static */bool buildMeshAdjacency(unsigned short* polys, const int npolys,
const int nverts, const int vertsPerPoly)
{
// Based on code by Eric Lengyel from: