Game Development Reference
In-Depth Information
5. Just as in React AI and Unity NavMesh, we need a navigation mesh for this
as well. We clearly defined the route, but as you can see, the path is blocked.
In the RAIN menu, click on
Create Navigation Mesh
. Align and stretch it so
that it surrounds the area where you want the paths to be determined.
The Inspector panel for the NavMesh has a property called
Ignored Tags
.
Add
Player
to this list. (You might need to make sure that the player object
actually has that tag selected as well.) Otherwise, the NavMesh will not gen-
erate where the player stands, and will prevent its ability to find a path. Then
click on
Generate Navigation Mesh
at the bottom of the
Inspector
panel.
The result should look like this: