NavMeshAgentMovement HasArrived Problem

atmuc

Member
NavMeshAgentMovement should check m_NavMeshAgent.pathPending in HasArrived function. When you call HasArrived just after SetDestination, m_NavMeshAgent.remainingDistance is zero.

C#:
public override bool HasArrived { get { return !m_NavMeshAgent.pathPending && m_NavMeshAgent.remainingDistance <= m_ArrivedDistance; } }
 
Top