What is a NavMesh?
A NavMesh in Unity defines for the AI in which level areas it can move. For example, there are areas that she does not enter. Areas that are marked blue, for example, are visited by the AI.

Via Window–> AI–> Navigation, paths of the AI can be narrowed down.
The beacon settings
These are the settings that can be made in relation to the AI.
Agent radius: Specifies the radius that a NavMesh agent can cover or the horizontal area in the level. The level must be horizontally passable for the AI.
Agent Height: Describes the height of the AI or in which vertical space the AI can move and whether it can move over narrow or high areas.
Max Slope: Determines how steep the slope is that the AI can traverse. NavMesh can, for example, cover slopes at the right angle, e.g. B. 45 ° rise, but not above it if it is not set.
Step height: Determines how high the step the AI can take. If the step is set to 1, it means that NavMesh areas are connected that are up to 1m high, but not higher.
Generated off-mesh links: These are links that are created between NavMesh sections when the NavMesh is created.
Drop height: This point is relevant if the AI can jump from top to bottom in the NavMesh area, provided they are separated. The system creates links in between and the maximum jump height is determined.
Jump Distance: Jump distance refers to the AI's horizontal jump when two NavMesh areas are separated. Links are created between these areas. The jump distance is set and links between the areas are created.
For example, the agent radius is set to 0,5m and the agent height to 2m. the area is marked with a red triangle, which is too narrow and too low for the NavMesh navigation. Areas not marked in blue are not covered by the AI.
The other tabs
Agent tab: Here you will find all information about the agents that are navigated through the NavMesh. It makes sense to look in here to see the variables that the AI has so far.
Areas tab: The Areas tab helps to define new area areas which the AI can or cannot pass. Paths can be determined which the agent takes when he has to make a choice between several areas. The costs for each area help determine the path. The higher the cost, the less likely an agent will cross that area.
Bake Tab - Advanced Settings:
Advanced: Here you can find the advanced settings for NavMesh
Manual Voxel Size: The toggle switch can be used to influence the voxel size.
Voxel Size: Determines how exactly the Navmesh process works on the geometry of the level plane.
Min Region Area: Indicates the minimum area required for a NavMesh region to be created.
Height Mesh: Helps with the exact placement of the NavMesh for the NavAgents, based on the restricted geometry, e.g. B. on stairs
Objects tab:
The object tab is relevant to determine which area applies to a specific object. For example, you can assign a special area to certain areas.
If the AI is your asset such as For example, if you are dealing with a wall, activate Static at the top right of the Asset.

Then open the NavMesh and go to BakeMesh. As a result, the AI circles the static object.
Originally posted on 2019-11-06 17:02:00.
