Is there a way to make agents not stick so close to walls using the grid graph?

So I want my agents to not stick so close to walls when traversing the path. Is there some way to doing that using the grid graph approach?


The easiest way is to modify the grid graph settings. The pathfinding system will always return the shortest path however you can use erosion with tags and specify different penalties for different distances to the wall. See

I am trying to understand the Tag/Erosion system you have in place but I guess I don’t quite understand how it works. I understand that you can tag nodes and add weights to them but I guess I don’t understand HOW you do that. Is there some tutorial or resource you can point me to?