fix: patrol navigation now first targets the closest point on the path
This commit is contained in:
parent
9517588415
commit
c05d3aa28f
4 changed files with 20 additions and 14 deletions
|
|
@ -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{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue