Book Image

Unity AI Programming Essentials

By : Curtis Bennett
Book Image

Unity AI Programming Essentials

By: Curtis Bennett

Overview of this book

Table of Contents (19 chapters)

Advanced NavMesh parameters


Now that we know how navigation mesh generations works, let's look at the different parameters you can set to generate them in more detail.

We'll look at how to do these parameters with RAIN using the following steps:

  1. Open one of our previous scenes or create a new one with a floor and some blocks for walls.

  2. Then, go to RAIN | Create NavMesh. Also, right-click on the RAIN menu and choose Show Advanced Settings. The setup should look something like the following screenshot:

    The NavMesh setup

    Now let's look at some of the important parameters:

    • Size: This is the overall size of the navigation mesh. You'll want the navigation mesh to cover your entire level and use this parameter instead of trying to scale up the navigation mesh through the Scale transform in the Inspector window. For our demo here, set the Size parameter to 20.

    • Walkable Radius: This is an important parameter to define the character size of the mesh. Remember, each mesh will be matched to the size of a...