Agents near walls

Explanation of the image
white: walkable area
black: unwalkable area
green: obstacles bounds
red circle: the agent
blue: the path

the problem
so i need my agents stay near to the wall.
how can i achieve this?, can i make the nodes far from the wall unwalkable?

pd: im in the free version


You can use the “erosion uses tags” option on the grid graph to create tags next to your obstacles, and then make the Seeker component use a higher penalty for all tags which are not close to obstacles.

See GridGraph - A* Pathfinding Project

ok, that worked!! thank you so much

1 Like