- Home /
NavMeshAgents not avoiding one another (obstacleAvoidanceType bug?)
I'm using 3.5's pathfinding, and it mostly works completely fine. I'm using it in an environment with a good navmesh, and I'm simply using SetDestination to move them around.
I've noticed, however, that sometimes two agents will happen to cross paths while going to their destinations, and they just walk against each other.
They don't make any attempt to avoid one another, and they just walk against each other for as long as it takes for their collision cylinders to eventually slide around the other agent and let them continue on their way.
Auto Repath is set to true for both agents. Obstacle Avoidance Type is set to High Quality for both agents. The agents' physics layer is the same, and is set to collide with itself in the project's physics settings (this is of course evidenced by the fact that they walk against each other as their cylinders slide).
Am I missing something? Shouldn't obstacle avoidance between two NavMeshAgents cause them to avoid one another more gracefully?
I'm having the exact same issue. There is no grace when Nav$$anonymous$$eshAgents cross each others path. Also I need pathing for an rts style movement that is using dynamic waypoints.
$$anonymous$$aybe try A* Path finding. Its really good. Otherwise try increasing their radiuses.
Your answer
