Laying down a Navigation Mesh
A Navigation Mesh (also known as a Nav Mesh) is basically a definition of areas that an AI-controlled unit considers passable (that is, areas which the "AI-controlled" unit is allowed to move into or across). A Nav Mesh does not include geometry that would block the player if the player tried to move through it.
Getting ready
Constructing a Nav Mesh based on your scene's geometry is fairly easy in UE4. Start with a project that has some obstacles around it, or one that uses a terrain.
How to do it...
To construct your Nav Mesh, simply perform the following steps:
- Go to Modes | Volumes.
- Drag Nav Mesh Bounds Volume onto your viewport.
Tip
Press the P key to view your Nav Mesh.
- Scale the Nav Mesh out to cover the area that the ...
Get Unreal Engine 4 Scripting with C++ Cookbook 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.