diff options
Diffstat (limited to 'scene/2d/navigation_2d.h')
-rw-r--r-- | scene/2d/navigation_2d.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/2d/navigation_2d.h b/scene/2d/navigation_2d.h index 08642a5489..16e20d8f9b 100644 --- a/scene/2d/navigation_2d.h +++ b/scene/2d/navigation_2d.h @@ -61,7 +61,9 @@ public: return edge_connection_margin; } - Vector<Vector2> get_simple_path(const Vector2 &p_start, const Vector2 &p_end, bool p_optimize = true); + Vector<Vector2> get_simple_path(const Vector2 &p_start, const Vector2 &p_end, bool p_optimize = true) const; + Vector2 get_closest_point(const Vector2 &p_point) const; + RID get_closest_point_owner(const Vector2 &p_point) const; Navigation2D(); }; |