summaryrefslogtreecommitdiffstats
path: root/servers/navigation_server_2d.h
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-04-01 01:49:43 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2023-05-11 18:46:34 +0200
commitf986b52b3cc107374d4e74774c8695a0f1282e11 (patch)
tree4f7382431f7b58e133528f02ea1d139851cc588e /servers/navigation_server_2d.h
parentfd4a06c51555904104b18494d0224f450d74fe2a (diff)
downloadredot-engine-f986b52b3cc107374d4e74774c8695a0f1282e11.tar.gz
Make navigation mesh edge connections optional
Makes navigation mesh edge connections optional.
Diffstat (limited to 'servers/navigation_server_2d.h')
-rw-r--r--servers/navigation_server_2d.h6
1 files changed, 6 insertions, 0 deletions
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;