Navmesh on terrain - slope angle?

How to increase navmesh slope angle on terrain? I’ve tried changing “Agent Max Slope” and other options, but it still can’t build navmesh over the little hill on the image:

1 Like

I’ve figured out that increasing “Cell Height” in Navigation Mesh settings solved this - but i’m not sure if this is a correct solution. Now it correctly generates navmesh over the terrain, but i hope it will not cause performance hit or something.

When it comes to vertical namvesh building CellHeight, AgentMaxStepHeight and AgentMaxSlope are the three values you need to play around with. AgentMaxStepHeight needs to be greater then CellHeight since it’s used to check if AI can would be able to “step up” from one voxel to the neighboring one (of course AgentMaxSlope is used here as well).

Cheers,

–mieszko

1 Like