0
\$\begingroup\$

I have a scene with buildings and a Nav Mesh Agent. Should all the buildings contain the Nav Mesh Agent obstacle component, or them having colliders and being higher than agents step height is enough for the agent to avoid them at all times?

\$\endgroup\$
1
\$\begingroup\$

Stay with the collider and the height above the step height.

In the bake tab open the advanced options and change Min Region Area to a higher value and test it until the areas on your obstacles disappear.

Reference: https://docs.unity3d.com/Manual/nav-AdvancedSettings.html

\$\endgroup\$
  • \$\begingroup\$ Yeah I noticed their rooftops have walkabke areas :-) what do you mean by layer \$\endgroup\$ – John Demetriou Aug 24 '17 at 9:18
  • \$\begingroup\$ Check out this for layers: docs.unity3d.com/Manual/Layers.html \$\endgroup\$ – Rafiwui Aug 24 '17 at 9:21
  • \$\begingroup\$ Oh I'm sorry. I am not sure if my approach works. I just realized that there is an other/easier way. I will edit my answer. \$\endgroup\$ – Rafiwui Aug 24 '17 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.