Skip to content
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

How to export navmesh to make sure zone's groups length = 1 #142

Open
yaoyutian opened this issue Mar 30, 2022 · 1 comment
Open

How to export navmesh to make sure zone's groups length = 1 #142

yaoyutian opened this issue Mar 30, 2022 · 1 comment
Labels

Comments

@yaoyutian
Copy link

After Pathfinding.createZone ,zone's groups length greater then 1;
while start position and end position in different group, findPath Failed!
after reading src code ,i still can't figure out why a simple mesh atfer createzone ,get multiple groups. can anyone help!
how do I need to do the exportation of nav mesh , can make zone group's length =1?

截屏2022-03-30 下午8 49 58

截屏2022-03-30 下午8 52 30

mesh file (change Filename Extension from txt to glb)
3-3.txt

@donmccurdy
Copy link
Owner

The mesh topology needs to be very clean to be used as a navmesh. Projects like 'recast' (previously available in Blender) did this automatically, but it's necessary if you're building the navmesh yourself too. Doing a 'merge by distance' in Blender might help, try the file below?

navmesh.glb.zip

It's also generally a good thing if the navmesh has roughly similar sizes of triangles, long/thin triangles may cause weird pathfinding choices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants