diff --git a/doc/classes/NavigationMesh.xml b/doc/classes/NavigationMesh.xml index 247b7b5329d..464ffd50afb 100644 --- a/doc/classes/NavigationMesh.xml +++ b/doc/classes/NavigationMesh.xml @@ -111,8 +111,8 @@ The maximum distance a simplified contour's border edges should deviate the original raw contour. - - The maximum allowed length for contour edges along the border of the mesh. + + The maximum allowed length for contour edges along the border of the mesh. A value of [code]0.0[/code] disables this feature. [b]Note:[/b] While baking, this value will be rounded up to the nearest multiple of [member cell_size]. diff --git a/scene/resources/navigation_mesh.h b/scene/resources/navigation_mesh.h index ea4046e612c..8b9b810038c 100644 --- a/scene/resources/navigation_mesh.h +++ b/scene/resources/navigation_mesh.h @@ -86,7 +86,7 @@ protected: float agent_max_slope = 45.0f; float region_min_size = 2.0f; float region_merge_size = 20.0f; - float edge_max_length = 12.0f; + float edge_max_length = 0.0f; float edge_max_error = 1.3f; float vertices_per_polygon = 6.0f; float detail_sample_distance = 6.0f;