Sample::~Sample() { dtFreeNavMeshQuery(m_navQuery); dtFreeNavMesh(m_navMesh); dtFreeCrowd(m_crowd); delete m_tool; }
NavMeshGenerator::~NavMeshGenerator() { cleanup(); dtFreeNavMeshQuery(m_navQuery); dtFreeNavMesh(m_navMesh); dtFreeCrowd(m_crowd); }
Sample::~Sample() { dtFreeNavMeshQuery(m_navQuery); dtFreeNavMesh(m_navMesh); dtFreeCrowd(m_crowd); delete m_tool; for (int i = 0; i < MAX_TOOLS; i++) delete m_toolStates[i]; }
NavMesh::~NavMesh() { dtFreeTileCache(_tileCache); dtFreeCrowd(_crowed); dtFreeNavMesh(_navMesh); dtFreeNavMeshQuery(_navMeshQuery); CC_SAFE_DELETE(_allocator); CC_SAFE_DELETE(_compressor); CC_SAFE_DELETE(_meshProcess); CC_SAFE_DELETE(_geomData); for (auto iter : _agentList){ CC_SAFE_RELEASE(iter); } _agentList.clear(); for (auto iter : _obstacleList){ CC_SAFE_RELEASE(iter); } _obstacleList.clear(); }
void UCrowdManager::DestroyCrowdManager() { // freeing DetourCrowd with dtFreeCrowd dtFreeCrowd(DetourCrowd); DetourCrowd = NULL; }
OgreDetourCrowd::~OgreDetourCrowd() { dtFreeCrowd(m_crowd); dtFreeObstacleAvoidanceDebugData(m_vod); }