Copyright © 2026 Unity Technologies
This is by design. The Navmesh is just an approximation of level geometry, and therefore does not fully match the geometry. Having the Build Heightmesh option enabled makes the agent snap to the ground and is the recommended way to resolve this interaction.
Reproduction steps:
1. Open the attached “IN-71884 NavMesh Height Bug.zip” project
2. Open the “SampleScene”
3. Open the Navigation window by going to Window > AI > Navigation
4. Select the “Cube” GameObject in the Hierarchy
5. Under the “Bake” tab of the Navigation window, expand the “Advanced” category
6. Make sure the “Height Mesh” option is disabled
7. (Optional) Enable the “Manual Voxel Size” option and set the “Voxel Size” property to 0.4 or more (the higher the value, the more pronounced the issue is but any value reproduces the issue)
8. Press the “Bake” button
9. Enter Play mode and observe the Scene view from various angles (orthographic perspective from the x or z axes works the best)
Expected result: The NavMesh Surface is baked on the top surface of the “Cube” and therefore the “Capsule” GameObject stays connected to the ground (“Cube”)
Actual result: The NavMesh Surface is baked above the top surface of the “Cube” and therefore the “Capsule” GameObject hovers above the ground (“Cube”)
Reproducible with: 2021.3.38f1, 2022.3.28f1, 6000.0.1f1
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
Issues you vote on will appear here