summaryrefslogtreecommitdiff
path: root/servers/navigation_2d_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'servers/navigation_2d_server.h')
-rw-r--r--servers/navigation_2d_server.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/servers/navigation_2d_server.h b/servers/navigation_2d_server.h
index 2ac0e8f875..7b0b9fbb01 100644
--- a/servers/navigation_2d_server.h
+++ b/servers/navigation_2d_server.h
@@ -49,7 +49,7 @@ protected:
static void _bind_methods();
public:
- /// Thread safe, can be used accross many threads.
+ /// Thread safe, can be used across many threads.
static const Navigation2DServer *get_singleton() { return singleton; }
/// MUST be used in single thread!
@@ -79,6 +79,9 @@ public:
/// Returns the navigation path to reach the destination from the origin.
virtual Vector<Vector2> map_get_path(RID p_map, Vector2 p_origin, Vector2 p_destination, bool p_optimize) const;
+ virtual Vector2 map_get_closest_point(RID p_map, const Vector2 &p_point) const;
+ virtual RID map_get_closest_point_owner(RID p_map, const Vector2 &p_point) const;
+
/// Creates a new region.
virtual RID region_create() const;