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

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.

主站蜘蛛池模板: 友谊县| 瓦房店市| 增城市| 泰州市| 广元市| 聊城市| 亚东县| 安西县| 织金县| 溆浦县| 兴业县| 中牟县| 荆门市| 太仆寺旗| 北票市| 谢通门县| 潞西市| 高陵县| 余姚市| 布尔津县| 梅河口市| 天津市| 连州市| 绵竹市| 廊坊市| 会同县| 永定县| 赤壁市| 仲巴县| 平定县| 徐州市| 望城县| 蓬溪县| 迭部县| 宕昌县| 宜州市| 汉沽区| 潞城市| 饶阳县| 栾城县| 涿州市|