- Home /
Navmesh agent getting stuck in trees placed using terrain tool
I've ran into trouble which I can't seem to find a solution despite of some research: I have only one navmesh agent (lets say, a zombie) which is coded to walk between different waypoints on a terrain using navmesh pathfinding.
Now when a tree is on the path of agent, the agent gets always stuck around it. Tree is placed on terrain using terraing tool, it isn't a separate gameobject.
Unchecking "enable tree colliders" on terrain fixes this behaviour but it obviously isn't what I want to achieve :) Tried different radiuses both on my agent and baking parameters, also different collider sizes around that npc but no success.
Any help would be appreciated :)
Got the initial issue solved but now I have a really stoopid question :) I'm posting and asking first time here and got email notification that users have commented my question but I can't see any comments or replies here thus can't even mark them helpful.
Your answer
![](https://koobas.hobune.stream/wayback/20220612192724im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Duplicated NavMesh Agents not moving 0 Answers
How to edit baked navigation for better accuracy? 0 Answers
Creating a 3D Navmesh for a Spacegame 1 Answer
NavMesh agent snaps to wrong mesh 0 Answers
Nav Agents Behaving Inconsistently 0 Answers