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

Method addNavMeshAgent

core/navmesh/NavMesh.cpp:448–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void NavMesh::addNavMeshAgent(NavMeshAgent* agent)
449{
450 auto iter = std::find(_agentList.begin(), _agentList.end(), nullptr);
451 if (iter != _agentList.end())
452 {
453 agent->addTo(_crowed);
454 agent->setNavMeshQuery(_navMeshQuery);
455 agent->retain();
456 _agentList[iter - _agentList.begin()] = agent;
457 }
458}
459
460bool NavMesh::isDebugDrawEnabled() const
461{

Callers 2

onEnterMethod · 0.80

Calls 6

setNavMeshQueryMethod · 0.80
findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
addToMethod · 0.45
retainMethod · 0.45

Tested by

no test coverage detected