- Home /
Navmesh carving causing issues upon enabling navmesh agent component
Hi,
I have a script that enables the obstacle component and disables the agent component when my agent has reached its destination. This is so the other agents in the scene (think enemies) fan around the target (player object). I found that if you also turn on carving the other agents in close proximity have a more believable behavior rather than rubbing together like you get if you just have the obstacle component enabled.
The issue I have is that when you move the target and disable the obstacle component and enable the agent component the agents teleport outside of the carves they have made. Of course this makes sense and Ive tried to rebake the navmesh when they move to try to fix the problem but this is terrible on performance. Is there a work around for this?
Thanks!
Your answer
Follow this Question
Related Questions
Trouble with Navmesh Agent and Navmesh Obstacle 0 Answers
Toggling NavMeshAgent and NavMeshObstacle 2 Answers
Way to ignore specific navmeshobstacles for specific navmeshagent when creating path? 0 Answers
How to let a navMeshAgent detect if path is blocked by an obstacle? 1 Answer
Unity NavMesh obstacle avoidance? 0 Answers