Game Development Reference
In-Depth Information
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 in-
stead 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 char-
acter size of the mesh. Remember, each mesh will be matched to the
size of a particular character, and this is the radius of the character.
You can visualize the radius for a character by adding a Unity Sphere
Collider script to your object (by going to Component | Physics |
Sphere Collider ) and adjusting the radius of the collider.
Search WWH ::




Custom Search