MCPcopy Create free account
hub / github.com/axmolengine/axmol / isInClosedList

Method isInClosedList

3rdparty/recast/DetourNavMeshQuery.cpp:3676–3690  ·  view source on GitHub ↗

@par The closed list is the list of polygons that were fully evaluated during the last navigation graph search. (A* or Dijkstra)

Source from the content-addressed store, hash-verified

3674/// the last navigation graph search. (A* or Dijkstra)
3675///
3676bool dtNavMeshQuery::isInClosedList(dtPolyRef ref) const
3677{
3678 if (!m_nodePool) return false;
3679
3680 dtNode* nodes[DT_MAX_STATES_PER_NODE];
3681 int n= m_nodePool->findNodes(ref, nodes, DT_MAX_STATES_PER_NODE);
3682
3683 for (int i=0; i<n; i++)
3684 {
3685 if (nodes[i]->flags & DT_NODE_CLOSED)
3686 return true;
3687 }
3688
3689 return false;
3690}

Callers 1

drawMeshTileFunction · 0.80

Calls 1

findNodesMethod · 0.80

Tested by

no test coverage detected