官术网_书友最值得收藏!

Generating the Navigation Mesh

Generating a simple Navigation Mesh is pretty straightforward in Unreal. Let's look at how we can do it. From the Mode panel, in the Volume tab, you will be able to find the Nav Mesh Bounds Volume, as shown in the following screenshot:

Drag it into the world. You will notice that the volume is quite small in respect to the map. Everything inside that volume will be taken into consideration to generate a Nav Mesh. Of course, a Nav Mesh has many parameters, but for now let's keep thing simple.

If you press the P button on your keyboard, you will be able to see the Nav Mesh in the Viewport, as shown in the following screenshot:

As you can see, it is limited to the area that's contained in the volume of Nav Mesh Bounds Volume. Let's scale the Nav Mesh Bounds Volume to fit all the level we have. This is what your level should look like:

Did you notice how, while you were scaling your volume, the Nav Mesh was updating automatically? This is because, in Unreal, the Nav Mesh is generated every time something that impacts the Nav Mesh moves.

While updating, the part of the Nav Mesh that's affected (that is, updated) should turn red, as shown in the following screenshot:

This is how easy is to generate a Nav Mesh. However, to be able to master the tool, we need to learn more about how to refine the Nav Mesh and how it is used by the AI.

主站蜘蛛池模板: 饶河县| 滨海县| 精河县| 资源县| 来宾市| 全州县| 张家港市| 新巴尔虎左旗| 丹阳市| 定安县| 博爱县| 定西市| 东兴市| 德清县| 论坛| 甘孜县| 化德县| 潼南县| 黄梅县| 利津县| 太谷县| 灵川县| 尼勒克县| 汶上县| 汤阴县| 特克斯县| 乌兰浩特市| 桃源县| 蒲城县| 赣州市| 鄄城县| 界首市| 璧山县| 措美县| 乌兰浩特市| 三门峡市| 永仁县| 西畴县| 油尖旺区| 建水县| 湛江市|