Obstacle

I’m encountering an issue with wall avoidance. The problem is that my AI doesn’t seem to avoid walls and instead goes straight for the target. I’m seeking assistance in refining my code to enable proper wall avoidance for the AI.

The NavMesh should be taking these things into account.

Did you rebake after adding the walls?

Are your walls marked Static in the inspector?
Additionally, In the NavMesh window, with the component selected, go to the component tab and select Static, Navigation Static.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms