- Home /
Enemy navmesh avoidance
How can i make the enemy avoid high climbs but be able to come down, because if the player try to climb it could not have speed and it will get stuck, but i want that him can come down if he is over a mountain. I already tryed to generate the navemesh whitout high climbs but if the player is down an the enemy is over a mountain it will find a path arroun the map to the player insted of only follow the player. by other words, if the player get down of a mountain the enemy will go around instead of get down with the player.
Answer by Ed unity · Apr 14, 2014 at 02:31 PM
It appears that you want your NavAgent to be able to move down slope, but not up slopes. Personally, I would generate the NavMesh in such a way that the NavMesh was never on a slope that was too great. Then I would create a one way OffMesh link across the slopes that you want the Navagent to be able to jump down. You could create a couple links across one gap, but that is the only way you would be able to do what you are seeking to accomplish.
Your answer
Follow this Question
Related Questions
How to make enemy avoid others enemies with navmesh? And enemy ai problem. 2 Answers
How do I go about adding basic pathfinding to my enemy? 1 Answer
Horde of NavMeshAgents - stops to recalculate path. 4 Answers
CalculatePath often returns wrong results 0 Answers
Navigation Mesh not working in build 0 Answers