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

Method onEnter

core/navmesh/NavMeshAgent.cpp:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void ax::NavMeshAgent::onEnter()
144{
145 if (_agentID != -1)
146 return;
147 Component::onEnter();
148 auto scene = _owner->getScene();
149 if (scene && scene->getNavMesh())
150 {
151 scene->getNavMesh()->addNavMeshAgent(this);
152 }
153}
154
155float NavMeshAgent::getMaxSpeed() const
156{

Callers

nothing calls this directly

Calls 2

getSceneMethod · 0.80
addNavMeshAgentMethod · 0.80

Tested by

no test coverage detected