Skip to content

Commit

Permalink
Merge pull request #79786 from smix8/navmesh_max_edge_len_4.x
Browse files Browse the repository at this point in the history
Disable NavigationMesh `edge_max_length` property by default
  • Loading branch information
YuriSizov committed Jul 25, 2023
2 parents 8ba8b95 + c63125c commit ee1be95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/classes/NavigationMesh.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
<member name="edge_max_error" type="float" setter="set_edge_max_error" getter="get_edge_max_error" default="1.3">
The maximum distance a simplified contour's border edges should deviate the original raw contour.
</member>
<member name="edge_max_length" type="float" setter="set_edge_max_length" getter="get_edge_max_length" default="12.0">
The maximum allowed length for contour edges along the border of the mesh.
<member name="edge_max_length" type="float" setter="set_edge_max_length" getter="get_edge_max_length" default="0.0">
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].
</member>
<member name="filter_baking_aabb" type="AABB" setter="set_filter_baking_aabb" getter="get_filter_baking_aabb" default="AABB(0, 0, 0, 0, 0, 0)">
Expand Down
2 changes: 1 addition & 1 deletion scene/resources/navigation_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class NavigationMesh : public Resource {
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;
Expand Down

0 comments on commit ee1be95

Please sign in to comment.