Navigation ignores obstacles

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By VanKurt

I have created a navigation node with a navigation mesh attached to it. The navigation mesh looks fine in the editor:

But when I use “get_simple_path” to find a path through my mesh, all I get is a simple straight line. So the returned path consists of just of two points, my starting position and the end position. All obstacles baked into the nav mesh seem to be completely ignored.

This is an example of how I call the method to find a path to the center of my level:

path = nav.get_simple_path(global_transform.origin, Vector3(0,0,0))