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

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.

主站蜘蛛池模板: 泰安市| 涿鹿县| 陈巴尔虎旗| 孟津县| 阿拉善左旗| 新巴尔虎右旗| 泗阳县| 漳平市| 通山县| 大石桥市| 承德市| 林西县| 汾阳市| 西乌| 襄樊市| 昌平区| 通海县| 鱼台县| 临夏市| 枞阳县| 略阳县| 桦甸市| 德州市| 南昌市| 米易县| 洪洞县| 灵璧县| 拉孜县| 涞源县| 高雄县| 灌南县| 叙永县| 桂阳县| 红安县| 东安县| 保定市| 盱眙县| 拉孜县| 宿州市| 青岛市| 金门县|