summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-17 09:18:54 +0100
committerGitHub <noreply@github.com>2021-03-17 09:18:54 +0100
commit08ca4184f407419f4265bdc0add21ac2e78bef7e (patch)
tree9dcd4f5877e049c34b7d0fc44b85b93872b49d09 /scene/resources
parent9ca0d66a3b51084eb528a85e133d9037b21bdd09 (diff)
parentac7073f58655094d08daf59e3b1b36946c5ee02b (diff)
Merge pull request #47024 from groud/navigation
Allow Navigation to be more flexible
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/world_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/world_2d.cpp b/scene/resources/world_2d.cpp
index a064ade362..ccdc5bebd0 100644
--- a/scene/resources/world_2d.cpp
+++ b/scene/resources/world_2d.cpp
@@ -368,7 +368,7 @@ World2D::World2D() {
navigation_map = NavigationServer2D::get_singleton()->map_create();
NavigationServer2D::get_singleton()->map_set_active(navigation_map, true);
NavigationServer2D::get_singleton()->map_set_cell_size(navigation_map, GLOBAL_DEF("navigation/2d/default_cell_size", 10));
- NavigationServer2D::get_singleton()->map_set_edge_connection_margin(navigation_map, GLOBAL_DEF("navigation/2d/default_edge_connection_margin", 100));
+ NavigationServer2D::get_singleton()->map_set_edge_connection_margin(navigation_map, GLOBAL_DEF("navigation/2d/default_edge_connection_margin", 5));
indexer = memnew(SpatialIndexer2D);
}