From f986b52b3cc107374d4e74774c8695a0f1282e11 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Sat, 1 Apr 2023 01:49:43 +0200 Subject: Make navigation mesh edge connections optional Makes navigation mesh edge connections optional. --- servers/navigation_server_2d.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'servers/navigation_server_2d.h') diff --git a/servers/navigation_server_2d.h b/servers/navigation_server_2d.h index d6e84d73b6..88246019b9 100644 --- a/servers/navigation_server_2d.h +++ b/servers/navigation_server_2d.h @@ -70,6 +70,9 @@ public: /// Returns the map cell size. virtual real_t map_get_cell_size(RID p_map) const; + virtual void map_set_use_edge_connections(RID p_map, bool p_enabled); + virtual bool map_get_use_edge_connections(RID p_map) const; + /// Set the map edge connection margin used to weld the compatible region edges. virtual void map_set_edge_connection_margin(RID p_map, real_t p_connection_margin); @@ -98,6 +101,9 @@ public: /// Creates a new region. virtual RID region_create(); + virtual void region_set_use_edge_connections(RID p_region, bool p_enabled); + virtual bool region_get_use_edge_connections(RID p_region) const; + /// Set the enter_cost of a region virtual void region_set_enter_cost(RID p_region, real_t p_enter_cost); virtual real_t region_get_enter_cost(RID p_region) const; -- cgit v1.2.3