-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Non-terminating while loop #62
Comments
Um, I think we have to find out how an anti-cyclic edge could actually appear in |
Agreed. I was looking for a short term fix, and probably shouldn't have made a pr out of it. I linked you the gltf model in question, though. Let me know if a more built out example demonstrating the problem would be helpful; like a babylon js playground or something. |
TBH, no. This is not a typical geometry for a navigation mesh.
It's best if your nav mesh is a single geometry with a continuous surface. There should be no stuff like coplanar edges, duplicated vertices or disconnected faces. |
Okay, good to know! It wasn't totally clear to me from the navigation mesh examples that the gltf file needs a single continuous geometry. I probably missed that. I'll play around with merging the meshes and see if that timeout issue occurs again. |
In an attempt to get around the large mesh issue I was talking about here I watered down the detail of the 3d geometry of the mesh and then split it into six parts resulting in this gltf file. That seems to have helped as I now get stuck further down the pipeline of loading the navmesh, here:
I put a deactivated debugger stopping point inside the do-while block, and let it run until it hit an endless loop cycle, then I was able to pause execution inside this code. From there I ran this snippet:
The length of the array was 16, and
arr.indexOf(this.edge)
returns -1, so that proves that the while loop will never terminate.The text was updated successfully, but these errors were encountered: