MCPcopy Create free account
hub / github.com/axmolengine/axmol / ~NavMesh

Method ~NavMesh

core/navmesh/NavMesh.cpp:118–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116{}
117
118NavMesh::~NavMesh()
119{
120 dtFreeTileCache(_tileCache);
121 dtFreeCrowd(_crowed);
122 dtFreeNavMesh(_navMesh);
123 dtFreeNavMeshQuery(_navMeshQuery);
124 AX_SAFE_DELETE(_allocator);
125 AX_SAFE_DELETE(_compressor);
126 AX_SAFE_DELETE(_meshProcess);
127 AX_SAFE_DELETE(_geomData);
128
129 for (auto&& iter : _agentList)
130 {
131 AX_SAFE_RELEASE(iter);
132 }
133 _agentList.clear();
134
135 for (auto&& iter : _obstacleList)
136 {
137 AX_SAFE_RELEASE(iter);
138 }
139 _obstacleList.clear();
140}
141
142bool NavMesh::initWithFilePath(std::string_view navFilePath, std::string_view geomFilePath)
143{

Callers

nothing calls this directly

Calls 5

dtFreeTileCacheFunction · 0.85
dtFreeCrowdFunction · 0.85
dtFreeNavMeshFunction · 0.85
dtFreeNavMeshQueryFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected