-
-
Notifications
You must be signed in to change notification settings - Fork 21k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot crash while generating the NavigationMeshInstance #38173
Comments
I guess we should have a non-zero minimum value for Sample Distance. What would be a good minimum value? Something like 0.1 or 1? |
Default is 6, and actual range go from 0 to 16 (float). I don't exactly know what this value is for. The class is undocumented, maybe I will try to contribute and write it. |
Keep in mind the navigation system was rewritten in the |
Chapter 2 🕵️♂️While investigation for writing the There is some doc inside code: godot/thirdparty/recastnavigation/Recast/Include/Recast.h Lines 256 to 258 in 7899b3e
and the value is used like that:
After testing again, it crashes not only when the So I propose to set minimum value to 1 to avoid crashes. Maybe I will try to make a PR. Also, I have a better crash log with build from source code:
|
On a related note, setting the size of the Recast doesn't seem to like it when you throw not so sane values at it. |
Godot version:
3.2.1 stable
OS/device including version:
Ubuntu Budgie 19.10
Issue description:
Godot crash while generating the
NavigationMeshInstance
, when0
is set forNavigationMeshInstance/Detail/Sample Distance
Steps to reproduce:
Navigation
nodeNavigationMeshInstance
node as child ofNavigation
NavigationMeshInstance
node, add aNavigationMesh
NavigationMesh
, go toDetail
section and dragSample Distance
to0
NavigationMeshInstance
node and clickBake NavMesh
Minimal reproduction project:
NavMeshCrash.zip
Open the project, select
NavigationMeshInstance
node and clickBake NavMesh
, it will crashThe text was updated successfully, but these errors were encountered: