Hi! I just started using A* pathfinding but i have a problem with making the grid for the ai.
So I have two tile maps, one for the walls around the map and one for obstacles inside of it. Both have a their own layer which I have put in “Obstacle layer mask” in the Pathfinder script.
But as you can see the unwalkable nodes does not follow the collider, they spread out and take up a much bigger portion than I want them too. Im guessing im doing something wrong but after some hours I cant wrap my head around what.
Thanks you!