Making the Level traversable with a NavMesh

In order to create AI behavior that allows our enemies to traverse the Level, we need to create a map of the environment that the AI will know how to read and navigate with. This map is created with an object known as a NavMesh. To create a NavMesh, find the Modes panel. With the Place tab selected, click on Volumes and then drag the Nav Mesh Bounds Volume object out onto the Level.

Now, you will want to move and scale up the Nav Mesh Bounds Volume object until the entire walkable space of your Level is contained within it. When you think you have your walking areas contained within the volume, press the P key on your keyboard to see whether the NavMesh is placed correctly. If so, you'll see a green Mesh on top of your floors, as seen in the following screenshot:

You can press P at any time to toggle the green NavMesh visibility on and off.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset