Refining nav mesh generation
It should come as no surprise that the complexity of an environment directly affects the time it takes for the system to generate a nav mesh. Conversely, if the generation time is shorter, the resulting nav mesh may be less precise. In most cases, your final system will involve a trade-off between computation speed and precision. This means it is mandatory, as a game developer, to understand how to properly set up your nav mesh generation.
In this section, I will provide you with some advice on how to optimize the way a nav mesh is generated.
Influencing nav mesh resolution
The next test we will perform involves modifying the resolution of a nav mesh. Start by following these steps:
- Open the Gym_NavMesh_02 level.
- If it is not already enabled, select the Top view.
- In the Outliner panel, select the Recast Nav Mesh actor.
- In the Details panel, check the following properties:
- Draw Tile Bounds
- Draw Tile Bounds Times
- Draw Tile Build...