Some areas couldn't fit the terrain

Hi
I found that when using RecastGraph, the NavMesh in some areas couldn’t fit the terrain properly.
How should I configure it to make the NavMesh fit the terrain as closely as possible?



  • A* version: [5.0.4]
  • Unity version: [2022.3.9]

Hi

By using tiles (see recast graph settings), you can split up the terrain into smaller chunks. This will make it follow the terrain much more closesly, and is strongly recommended when using open areas on an undulating terrain. The recommended tile size for most cases is somewhere between 64 and 256.

1 Like


Why can’t the triangular surfaces be subdivided here? Due to the two large triangular surfaces, there are problems with the baking. How can it be improved to make the grid fit the ground better?
The box height is 3m
Thanks

Hi

The recast graph will only subdivide triangles at either tile borders, or obstacle borders. So you can make it represent the terrain better by using a slightly smaller tile size.

1 Like