Now, we will learn how to make the proper changes to the NavMesh settings before baking:
- Create the game world with different areas. In our case, we will have regular areas (walkable), doors, and swamps.
- Open the Navigation window: Menu | Window | Navigation.
- Go to the Areas tab.
- Create a Swamp area with cost 6.
- Create a Door area with cost 2.
- Select the objects that will behave like swamps.
- Go to the Navigation window, and select the Objects tab.
- Change the Navigation Area value to Swamp.
- Select the objects that will behave like doors.
- Go to the Navigation window, and select the Objects tab.
- Change the Navigation Area value ...