diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-28 23:24:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 23:24:38 +0100 |
commit | 2a5b136de20c9c7f51abb8a90b9e9d8dc57152ac (patch) | |
tree | 845f4dfd5079673fc8b1cee7cd443778bbda5d6f /scene/resources | |
parent | 2279edeaf02d44612d09d332bd1dbaf7924ec7c1 (diff) | |
parent | 450e29a569b31539cbabd3221f998d2d51bf51ec (diff) |
Merge pull request #57371 from Scony/fix-navigation-2d-defaults
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/world_2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/world_2d.cpp b/scene/resources/world_2d.cpp index c937d988d2..9d8e0f7547 100644 --- a/scene/resources/world_2d.cpp +++ b/scene/resources/world_2d.cpp @@ -83,8 +83,8 @@ World2D::World2D() { // Create and configure the navigation_map to be more friendly with pixels than meters. 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", 5)); + NavigationServer2D::get_singleton()->map_set_cell_size(navigation_map, GLOBAL_DEF("navigation/2d/default_cell_size", 1)); + NavigationServer2D::get_singleton()->map_set_edge_connection_margin(navigation_map, GLOBAL_DEF("navigation/2d/default_edge_connection_margin", 1)); } World2D::~World2D() { |