Nav Mesh

From Valve Developer Community
(Redirected from Navmesh)
Jump to: navigation, search
English Español 日本語

A Navigation Mesh (or shorter: nav mesh) represents the "walkable areas" of a map. This data is required by:

  1. Bots and Hostages in:
  2. NextBot entities in:

These require the data to realize what's navigable in their environment, and path to their desired destination.

NAV files

Main article: NAV

Navigation Mesh data is stored in a NAV file corresponding to the map file (.bsp) for which it is used. For example, the nav mesh for cstrike\maps\de_dust.bsp is stored in cstrike\maps\de_dust.nav.

Navigation Mesh Editing

Main article: Nav Mesh Editing
Main article: Nav Mesh Commands

The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with nav_generate (which requires sv_cheats 1 and nav_edit 1).

Game Specific SubVersions

Game Known as Subversion Notes
Garry's Mod Garry's Mod TheNavMesh 0 Garry's Mod is using the base navigation mesh(It doesn't use it's own implementation unlike Valve games)
Counter-Strike: Source Counter-Strike: Source CSNavMesh 1
Team Fortress 2 Team Fortress 2 CTFNavMesh 2
Left 4 Dead Left 4 Dead TerrorNavMesh 13
Left 4 Dead 2 Left 4 Dead 2 TerrorNavMesh 14
Counter-Strike: Global Offensive Counter-Strike: Global Offensive CSNavMesh 1 (Ported from Counter Strike: Source?)

See also

External Links