| 141 | } |
| 142 | |
| 143 | void 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 | |
| 155 | float NavMeshAgent::getMaxSpeed() const |
| 156 | { |
nothing calls this directly
no test coverage detected