How to get length of the path of a NavigationAgent between point without setting it as target_position? Like - distance_to_target(target: Vector3)

Instead of using a NavigationAgent node you could just query a navigation path with the NavigationServer3D.map_get_path() instead if the query is simple or use the PathQuery objects for more complex queries. Using NavigationPathQueryObjects — Godot Engine (latest) documentation in English

2 Likes