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?

Hi

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 http://arongranberg.com/astar/docs/class_pathfinding_1_1_grid_graph.php#af156f09628f08d32091ea67e48e42b71

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?