fix: patrol navigation now first targets the closest point on the path

This commit is contained in:
Sara 2025-07-21 15:50:26 +02:00
parent 9517588415
commit c05d3aa28f
4 changed files with 20 additions and 14 deletions

View file

@ -17,7 +17,7 @@ public:
int point_count() const;
Vector3 point_at(int &index) const;
Vector3 point_at_unchecked(int const index) const;
int get_closest_point(Vector3 global_position);
Vector3 get_closest_point(Vector3 global_position, int *idx);
private:
Vector<Node3D *> path{};