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

Method setAutoTraverseOffMeshLink

core/navmesh/NavMeshAgent.cpp:274–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void NavMeshAgent::setAutoTraverseOffMeshLink(bool isAuto)
275{
276 if (_crowd && isOnOffMeshLink())
277 {
278 auto agentAnim = _crowd->getEditableAgentAnim(_agentID);
279 if (agentAnim)
280 {
281 agentAnim->active = isAuto;
282 }
283 }
284}
285
286void NavMeshAgent::stop()
287{

Calls 1

getEditableAgentAnimMethod · 0.80

Tested by 1

moveAgentsMethod · 0.64