Let's build a scene with some slopes, like this:
Scene with slopes-NavMesh02-Slope.scene
One important thing to note is that the slopes and the wall should be in contact with each other. Objects need to be perfectly connected when creating such joins in the scene, with the purpose of generating a NavMesh later. Otherwise, there'll be gaps in the NavMesh, and the agents will not be able to find the path anymore. There's a feature called Off Mesh Link generation to solve this kind of problem. We will look at Off Mesh Links in the Off Mesh Links section later in this chapter. For now, let's concentrate on building the slope:
- Make sure to connect the slope properly:
A well-connected slope
- We can adjust the Max Slope property in the Navigation window's Bake tab according to the level of slope in our scenes that we want to allow the agents...