Quick definition:A nav mesh is a simplified representation of navigable space that helps game software find routes for characters, identifying connected areas they can move through under the chosen rules.
Meaning
A nav mesh represents where a character can travel using a connected set of simpler regions. These are commonly polygons, meaning flat shapes bounded by straight edges. The representation lets pathfinding software search for a route without treating every detail of visible scenery as equally relevant. It is usually hidden during normal play.
The data can account for traversable ground, obstacles and connections between separate areas. Configuration may depend on a character's size and movement capabilities, so a route suitable for one character is not automatically valid for every other. Some systems also update parts of the representation when the environment changes or mark areas with different travel costs.
Nav mesh differs from the mesh used to render an object's appearance and from collision shapes that restrict physical movement. Those systems can influence one another but serve different purposes. A missing navigation region can prevent an automated character from finding a route even when a human-controlled character can move through the same visible space.
Origin:Nav mesh is shortened from navigation mesh, combining route-finding terminology with mesh, a connected arrangement of geometric regions. It comes from technical work on navigation, pathfinding and automated character movement rather than one particular genre. Its precise first gaming use is unclear. Developers adopted it as a way to represent traversable areas separately from the detailed scenery that is drawn for the player.
Example:A developer tests a guard walking through a courtyard and displays the nav mesh over the ground. Connected regions show a route around a fountain, but a doorway is missing from the navigable area. The developer adjusts the configuration and rebuilds the relevant data. The guard can then find the intended route without needing the visible model of the doorway to be replaced.
Did you know?A navigation system can favour a route that is not the shortest physical path. Different areas can carry different travel costs, allowing software to prefer safer or more suitable ground. The nav mesh supplies connected space, while route selection also depends on the rules and values assigned to that space.