I need to get around this obstacle, how can I do this? my code written above does not work with Navigation Obstacle 2D, it just rests on it and that’s it
additional question, can NavigationObstacle2D somehow take the shape of a sprite, or is it just a point with a center?
For the pathfinding you (re)bake the navigation mesh so that the shape of your obstacle is not included in the navigation mesh surface. If you are on Godot 4.3dev6 or later the obstacle node has a new property “affect_navigation_mesh” so that is included in a navigation mesh baking process like any other static geometry. On older Godot versions without that property just add e.g. a physics staticbody with a shape like the obstacle and set it to a collision layer that gets only parsed by the navigation mesh baking.