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

@ -118,6 +118,8 @@ public:
COMMAND_2(region_set_travel_cost, RID, p_region, real_t, p_travel_cost);
virtual real_t region_get_travel_cost(RID p_region) const;
virtual bool region_owns_point(RID p_region, const Vector3 &p_point) const;
COMMAND_2(region_set_map, RID, p_region, RID, p_map);
virtual RID region_get_map(RID p_region) const;
COMMAND_2(region_set_navigation_layers, RID, p_region, uint32_t, p_navigation_layers);