Making further improvements
Tweaking a nav mesh may take a long time – depending on what you want to achieve –and sometimes, it’s a matter of trial and error and personal experience. In this section, I will give you additional advice on how to improve your maps to make them more functional.
Tweaking resolution
Choosing the right nav mesh resolution is not just a matter of computational performance; sometimes it may even affect your agent navigation.
As an example, take into consideration Figure 6.15 showing a portion of the Gym_NavMesh_07 level:
Figure 6.15 – Nav mesh resolution
In this case, the Default Cell Size value has been set to 20.0
and, as you can see, there’s no walkable area between the obstacles. However, if you decrease the value to 5.0
, you will get a totally different scenario, as depicted in Figure 6.16:
Figure 6.16 – Improved nav mesh resolution
As you can...