NavMesh Agent avoiding it's self

I have GameObjects/Units I want to move around the map whilst being able to avoid each other.
I’ve attached a NavMesh Agent and a NavMesh Obstacle to the units and I’ve encountered a problem:
When I move the unit with SetDestination it starts to avoid it’s self.

You should also see a warning in the console :
“NavMeshAgent and NavMeshObstacle components are active at the same time. This can lead to errorneous behavior.”

So is there a way to use an agent and have other entities avoid it?

The agents are supposed to avoid each other - depending on some settings like ‘obstacleAvoidanceType’ and ‘avoidancePriority’

But there is not another way to solve this issue? Everything working perfect. But the navmeshobstacle cause issues. The navmeshonbstacle avoid from itself too. I want to know is there any way to ignore self navmeshobstacle from avoid???

1 Like