Game Development Reference
In-Depth Information
AI and Navigation
In this chapter, we will be covering the following recipes:
F Laying PathNodes on a map
F Laying NavMeshes on a map
F Adding a scout to create NavMesh properties
F Adding an AI Pawn via Kismet
F Allowing a pawn to wander randomly around a map
F Making a pawn patrol PathNodes on a map
F Making a pawn randomly patrol PathNodes on a map
F Allowing a pawn to randomly patrol a map with NavMeshes
F Making a pawn follow us around the map with NavMeshes
The Unreal Engine has two ways of handling pathfinding. They both have their pros and cons,
despite being somewhat similar. Quite simply, they can be broken down into WayPoints and
navigation meshes.
Pathfinding in the Unreal Engine is based on a pre-generated path network, which is laid down
by the developer. The path network doesn't cover 100 percent of the area the AI may navigate.
Therefore the AI also needs to be able to perform localized evaluation and routing of the
environment. The AI does this by using collision (ray) traces to determine how far objects
are and whether or not they are passable.
Search Nedrilad ::

Custom Search