I use nav mesh agent and my zombie try to reach the player position but instead of try to get around they gang bang with other zombie in front of them, how to improve that ? Like get around for take the other side or just don’t move if they cant reach the player position because other zombie are in circle around the player.
Also my zombie moving my Player, do you know how i can fixe that ?
My Player use CharacterController.
My Zombie use Nav Mesh Agent, Rigidbody and Capsule Collider.
nhfu4e
private void Chase()
{
if (!_navMeshAgent.pathPending)
{
if (NavMesh.SamplePosition(_targetDetection.Target.transform.position, out NavMeshHit hit, 20f, _navMeshAgent.areaMask))
{
_navMeshAgent.SetDestination(hit.position);
}
}
}