Merge pull request #57371 from Scony/fix-navigation-2d-defaults
This commit is contained in:
commit
2a5b136de2
2 changed files with 4 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue