i have been looking to introduce the recast and detours libraries into my AI project to handle generating navmeshs and pathfinding. I'm just having abit of trouble getting my head round actually integrating it within my own project. As part of the SVN there is a demo app that allows you to save a tiled mesh to a .bin.
It's this mesh that I would like to load in within my project but I'm having trouble doing so. Has anyone gone about this?
I thought about deriving a class from their Sample_TileMesh class and doing something like void MyTileMesh::Load()
{
dtFreeNavMesh(m_navMesh);
m_navMesh = loadAll("all_tiles_navmesh.bin");
m_navQuery->init(m_navMesh, 2048);
}
Not sure if this is the way to go about it, but Im still getting errors error LNK2019: unresolved external symbol "protected: class dtNavMesh * __thiscall Sample_TileMesh::loadAll(char const *)" (?loadAll@Sample_TileMesh@@IAEPAVdtNavMesh@@PBD@Z) referenced in function "public: void __thiscall MyTileMesh::Load(void)" (?Load@MyTileMesh@@QAEXXZ)
i have been looking to introduce the recast and detours libraries into my AI project to handle generating navmeshs and pathfinding. I'm just having abit of trouble getting my head round actually integrating it within my own project. As part of the SVN there is a demo app that allows you to save a tiled mesh to a .bin.
It's this mesh that I would like to load in within my project but I'm having trouble doing so. Has anyone gone about this?
I thought about deriving a class from their Sample_TileMesh class and doing something like void MyTileMesh::Load()
{
dtFreeNavMesh(m_navMesh);
m_navMesh = loadAll("all_tiles_navmesh.bin");
m_navQuery->init(m_navMesh, 2048);
}
Not sure if this is the way to go about it, but Im still getting errors error LNK2019: unresolved external symbol "protected: class dtNavMesh * __thiscall Sample_TileMesh::loadAll(char const *)" (?loadAll@Sample_TileMesh@@IAEPAVdtNavMesh@@PBD@Z) referenced in function "public: void __thiscall MyTileMesh::Load(void)" (?Load@MyTileMesh@@QAEXXZ)
My guess is you don't link in the library file or haven't included a .cpp when you build.