Couldnt find something simular with the search in the forum.
I have direct control in my game. I setup a NPC with a path and the wandering is working great.
Now i want to avoid obstacles the NPC along his path. I created a NavmeshSegment with a static obstacle and the NPC is not pathfinding the way, he goes straigth his path.
Doesnt use the Path script pathfinding? I can remember i saw anywhere an option for "use pathfinding" or something like this. Are there any restrictions?
Edit: Option Keep out of Players Way also not working. =(
Comments
Not avoiding obstacles and not sticking to the NavMesh are two separate issues - let's focus on the NavMesh issue first as it's a prerequisite to the obstacle one.
You will need to provide full details on what you've done so far - otherwise, all I can do is direct you to the Manual's Section 2.12 and the associated tutorial. Screenshots of your NavMesh and NPC's full Inspector in particular will help.