Part
Navigation graph
You might say: map representation, navigation mesh, waypoint graph
The locations and connections that pathfinding is allowed to search.
- What it does
- Compresses the world into a representation with enough detail for useful routes and few enough nodes for the available budget.
- Ask
- Which places are nodes, which connections are edges, and what detail is lost by this representation?
- Trouble
- The graph is too dense to search, too coarse to express a useful route, or disconnected at a real crossing.
What to look for
- Grid cells, waypoint dots, polygon borders or coarse regions
- Edges that stop at doors, bridges or corners
- A debug view showing the graph separate from render geometry
Catalogue: Representation
- Grid: A regular array of walkable cells connected to their neighbours. It counts as a grid when the representation divides space into uniform tiles, even if the rendered world is not tiled.
- Waypoints: A sparse graph of meaningful points such as corners, doors, intersections or cover positions. It counts as waypoints when authored or computed points carry the route graph instead of every walkable cell.
- Navigation mesh: A graph over connected polygons that represent walkable space. It counts as a navigation mesh when walkable regions, rather than obstacles or individual tiles, form the primary representation.
- Hierarchical graph: Several graph resolutions, from local detail to larger regions, searched as a route and then refined. It counts as hierarchical when a coarse route limits the search before finer routes fill in local movement.
Sources
- Amit Patel, Map Representations, Map representations
The map representation can make a huge difference in the performance and path quality.
- Epic Games, Navigation System in Unreal Engine, Navigation System
The system generates a Navigation Mesh from the collision geometry in the Level and divides the mesh into tiles. These tiles are then divided into polygons to form a graph that is used by Agents when navigating to their destination.
Use it on your project
teardown-apply: hold "Navigation graph" (navigation-graph) from the teardown at https://teardownatlas.com/game-ai/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal