If, for example, the mouse is clicked on the middle of a building, the player will walk to the building, hit the wall, and continue walking on the spot next to the wall. Is there a way to fix this?
Make sure there's a collider on the Default layer covering the wall - this will block cursor clicks, but also ensure they are not mistaken for the NavMesh.
What's your pathfinding method? Does the NavNesh hug the wall at a distance less than the player's collider radius? That may account for that kind of behaviour.
Comments