UnityGame/Library/PackageCache/com.unity.ai.navigation/Documentation~/HeightMesh.md
2024-10-27 10:53:47 +03:00

15 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Building a HeightMesh for Accurate Character Placement
Height [**mesh**][1] allows you to place your character more accurately on the walkable surfaces.
![](./Images/NavMeshHeightMesh.svg)
While navigating, the [**NavMesh**][2] Agent is constrained on the surface of the NavMesh. Since the NavMesh is an approximation of the walkable space, some features are evened out when the NavMesh is being built. For example, stairs may appear as a slope in the NavMesh. If your game requires accurate placement of the agent, you should enable **HeightMesh** building when you bake the NavMesh. The setting can be found under the Advanced settings in Navigation window. Note that building HeightMesh will take up memory and processing at runtime, and it will take a little longer to bake the NavMesh.
## Additional resources
- [Building a NavMesh](./BuildingNavMesh.md) workflow for NavMesh baking.
[1]: https://docs.unity3d.com/Manual/mesh-introduction.html "The main graphics primitive of Unity. Meshes make up a large part of your 3D worlds. Unity supports triangulated or Quadrangulated polygon meshes. Nurbs, Nurms, Subdiv surfaces must be converted to polygons."
[2]: ./BuildingNavMesh.md "A mesh that Unity generates to approximate the walkable areas and obstacles in your environment for path finding and AI-controlled navigation."