- Home /
NavMesh Agent Obstacle Avoidance Ignore
Hello Everyone,
I am currently using the NavMesh and NavMeshAgent in Unity 4.1.5f
Everything seems to work great, except I am unable to figure out how to have an agent disable avoidance against a specific unit/enemy.
I want a unit to engage in combat, by detecting it, then pathing to melee range, while avoiding the other units between them.
So far this works, but the Units use Obstacle avoidance against each other, so once detected and pathing to each other, they start to veer off instead of moving directly towards each other.
I am looking for a way to have them use avoidance as normal, but choose not to use avoidance specifically against their attack target.
-Priority will not work, since one will still try to path around the other.
-Deactivating avoidance will not work since there is a possibility other units will be between them.
Ultimately I would like a blacklist of objects I could place onto a certain objects NavMeshAgent, and have it ignore their avoidance.
This will also become necessary for invisible enemies.
Veru usefull feature which unfortunatelly is not supported by unity's navmesh agent by default.
I know this is 3+ years old but I'm currently looking for the same solution. I'm not sure how to solve this without ditching nav mesh agent movement altogether.
Did you every find a solution?
Your answer
Follow this Question
Related Questions
NavmeshAgent and NavmeshObstacle and Bake don't work with AICar 0 Answers
Way to ignore specific navmeshobstacles for specific navmeshagent when creating path? 0 Answers
Possible to edit the movement of NavMeshAgent ? 2 Answers
Find the nearest location and move to a target outside Navigation Mesh? 1 Answer
Way to find closest point in a specific area on navmesh. 0 Answers