To do this, implement the following:
- Open the Navigation windows (Window | AI | Navigation) and look at the NavMesh generation parameters.
In this case, NavMesh generation is quite easy: we are only interested in moving around on the ground surface plane, so there are no jumps, no links, and no slopes we need to care of.
- The only adjustment to the default NavMesh parameters we need to make is for the baking agent size (that is, the sizes of the virtual agent used by Unity to verify if a location is large enough to allow the agent to pass).
- In fact, the tanks used in the game are about 3 units large, so we need to instruct the generator to remove the areas that are too small for the tank to pass through:
In the ...