From e57360d8df6329e1e547bc5717ee707a7620e039 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Thu, 23 Jun 2022 19:16:47 +0200 Subject: Add NavigationServer.region_owns_point() helper function Adds a helper function to check if a world space position is currently owned by a navigation region. --- servers/navigation_server_3d.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servers/navigation_server_3d.h') diff --git a/servers/navigation_server_3d.h b/servers/navigation_server_3d.h index 5bf5d8ecdb..137ea0a395 100644 --- a/servers/navigation_server_3d.h +++ b/servers/navigation_server_3d.h @@ -107,6 +107,8 @@ public: virtual void region_set_travel_cost(RID p_region, real_t p_travel_cost) const = 0; virtual real_t region_get_travel_cost(RID p_region) const = 0; + virtual bool region_owns_point(RID p_region, const Vector3 &p_point) const = 0; + /// Set the map of this region. virtual void region_set_map(RID p_region, RID p_map) const = 0; virtual RID region_get_map(RID p_region) const = 0; -- cgit v1.2.3