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.

(cherry picked from commit e57360d8df)
This commit is contained in:
smix8
2022-06-23 19:16:47 +02:00
committed by Rémi Verschelde
parent 83fae1dfa9
commit f0069cc1e9
8 changed files with 39 additions and 0 deletions

View File

@ -100,6 +100,8 @@ public:
virtual void region_set_travel_cost(RID p_region, real_t p_travel_cost) const;
virtual real_t region_get_travel_cost(RID p_region) const;
virtual bool region_owns_point(RID p_region, const Vector2 &p_point) const;
/// Set the map of this region.
virtual void region_set_map(RID p_region, RID p_map) const;
virtual RID region_get_map(RID p_region) const;