Navmesh not working with terrain trees
Asked Answered
U

3

0

I’ve done everything I know how to do so far. I’ve added navmesh obstacles, volumes, and regular modifiers to the prefabs for the trees I am using for the terrain. no matter what I do when I bake the trees on the terrain are ignored and the NPC’s walk right through them. I’m assuming this is because of my ignorance of the navmesh system, but obviously, I need to fix this.

I’ve read this forum thread and tried doing all of the suggestions but nothing helped. My trees all have colliders.
https://forum.unity.com/threads/does-the-component-navigation-work-with-terrain-trees-yet.488074/

Any help would be appreciated I’m baking with the Navmesh Surface component

Ultun answered 2/2 at 0:19 Comment(1)

I have the exact same problem. Have you ever found the solution?

Khan
G
0

After countless naughty words I think I finally figured this out.

When you bake from the Navmesh Surface component the terrain trees are ignored no matter what I do. However when you Bake from the Navigation window it works fine.
Go to WindowAINavigation to open this window. Go to the Bake tab in this window and press the Bake button. Now trees are included in the navmesh bake.

This gave me a headache for so long.

Greyson answered 2/2 at 0:17 Comment(0)
A
0

This is a bug that Unity is not addressing at the time of this post.

Anthill answered 26/10, 2022 at 13:47 Comment(0)
N
0
Narda answered 1/2 at 23:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.