فهرست منبع

Merge pull request #47950 from AndreaCatania/AndreaCatania-patch-4

Lowers the navigation edge margin merge
Rémi Verschelde 4 سال پیش
والد
کامیت
8bbdd43b09
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      scene/resources/world_3d.cpp

+ 1 - 1
scene/resources/world_3d.cpp

@@ -348,7 +348,7 @@ World3D::World3D() {
 	navigation_map = NavigationServer3D::get_singleton()->map_create();
 	NavigationServer3D::get_singleton()->map_set_active(navigation_map, true);
 	NavigationServer3D::get_singleton()->map_set_cell_size(navigation_map, GLOBAL_DEF("navigation/3d/default_cell_size", 0.3));
-	NavigationServer3D::get_singleton()->map_set_edge_connection_margin(navigation_map, GLOBAL_DEF("navigation/3d/default_edge_connection_margin", 5.0)); // Five meters, depends a lot on the agent's radius
+	NavigationServer3D::get_singleton()->map_set_edge_connection_margin(navigation_map, GLOBAL_DEF("navigation/3d/default_edge_connection_margin", 0.3));
 
 #ifdef _3D_DISABLED
 	indexer = nullptr;