diff options
author | Nick Samarin <nicks1987@bigmir.net> | 2010-05-19 05:42:17 +0400 |
---|---|---|
committer | Nick Samarin <nicks1987@bigmir.net> | 2010-05-19 05:42:17 +0400 |
commit | 56784fcde9e4a4ff1553bf555e66b59208c90b3c (patch) | |
tree | cbfe67fb5ee642fd6c9f5656806a63e4bbd70cc0 /extern/recastnavigation/Detour | |
parent | 34058faa0ef08f85c89f920298d54849a55b6052 (diff) |
added converting mesh of game object to Detour StatNavMesh (game object is defined by property "navmesh")
Diffstat (limited to 'extern/recastnavigation/Detour')
-rw-r--r-- | extern/recastnavigation/Detour/Include/DetourStatNavMeshBuilder.h | 4 | ||||
-rw-r--r-- | extern/recastnavigation/Detour/Source/DetourStatNavMeshBuilder.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/extern/recastnavigation/Detour/Include/DetourStatNavMeshBuilder.h b/extern/recastnavigation/Detour/Include/DetourStatNavMeshBuilder.h index 3b8f7519b2f..03c79c429e7 100644 --- a/extern/recastnavigation/Detour/Include/DetourStatNavMeshBuilder.h +++ b/extern/recastnavigation/Detour/Include/DetourStatNavMeshBuilder.h @@ -26,4 +26,8 @@ bool dtCreateNavMeshData(const unsigned short* verts, const int nverts, const unsigned char* dtris, const int ndtris, unsigned char** outData, int* outDataSize); +int createBVTree(const unsigned short* verts, const int nverts, + const unsigned short* polys, const int npolys, const int nvp, + float cs, float ch, int nnodes, dtStatBVNode* nodes); + #endif // DETOURSTATNAVMESHBUILDER_H
\ No newline at end of file diff --git a/extern/recastnavigation/Detour/Source/DetourStatNavMeshBuilder.cpp b/extern/recastnavigation/Detour/Source/DetourStatNavMeshBuilder.cpp index a2bfb94edbc..2ca455fb53d 100644 --- a/extern/recastnavigation/Detour/Source/DetourStatNavMeshBuilder.cpp +++ b/extern/recastnavigation/Detour/Source/DetourStatNavMeshBuilder.cpp @@ -160,7 +160,7 @@ static void subdivide(BVItem* items, int nitems, int imin, int imax, int& curNod } } -static int createBVTree(const unsigned short* verts, const int nverts, +/*static*/ int createBVTree(const unsigned short* verts, const int nverts, const unsigned short* polys, const int npolys, const int nvp, float cs, float ch, int nnodes, dtStatBVNode* nodes) |