Scene with slope

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: ...

Get Unity Artificial Intelligence Programming - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.