0 votes

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

But when I use "getsimplepath" 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))
Godot version 3.2.3
in Engine by (48 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.