I have some characters in my game that need to path find to random areas/nodes around the map. There are rectangular obstacles (buildings). The characters have a quite large hitbox that cant pass through these buildings and walls but the NavigationAgent2D keeps picking paths that are too close to the walls and get the character stuck or try to fit through tight gaps that the character is too large to fit through. I am using a tilemap for the map that contains these buildings and the tiles have hitboxes and a navigation layer. How can i get the NavigationAgent2D to pick a path that isnt too close to the walls and respects the fact that the character cant fit through certain areas? Im a bit new to godot, if you need any screenshots or anything, please ask for them and i’d be happy to show them.
Furthermore, I recommend going to the “Debug” setting on top of Godot, and enabling “Visible Navigation” so you can see how your paths are being calculated, so you can adjust them easier while running the game!
Thanks for replying! Unfortunately, avoidance doesnt seem to do anything in terms of avoiding walls, etc - probably only other characters. Here are some screenshots if they help (sorry for the odd photo, the forum said “sorry, new users can only upload 1 media share item” or something and in the bottom left, the map’s navigation layer is perfectly mapped, it looks like that cuz of compression):
i can post it separately here (the red car and orange building it tries to path between is one of the issues, as well as just being too close to said buildings)