- Home /
How to make enemy avoid others enemies with navmesh? And enemy ai problem.
I would like tha the enemies avoid each others when following the player. And is there any way i can stop enemy from climb but allow them to get down. Because my enemy don't have much speed to climb (so there i want them to find a path arround the climb) but because of that i can't generate navmesh on climbs, so if i get down the climb the enemy it will find again a path arround when he could just get down. Is there any way to stop him from climb but allow to get down?
Answer by rhapen · Oct 28, 2020 at 12:10 AM
Navmesh agents do work as obstacles as default based on settings Quality and Priority https://docs.unity3d.com/Manual/class-NavMeshAgent.html
For the second part i see you have two options. make it a one way jump between two separate nav meshes https://www.youtube.com/watch?v=blPglabGueM
Or setup second mesh on the climb and disable and enable it based on the position of enemy... probably some triggers, depends on your scene.
Your answer
Follow this Question
Related Questions
Enemy navmesh avoidance 1 Answer
Horde of NavMeshAgents - stops to recalculate path. 4 Answers
Object Avoidance for my enemies 1 Answer
How do I go about adding basic pathfinding to my enemy? 1 Answer
NavMeshAgent Different Sizes Help 0 Answers