Nav Mesh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Remove unneeded line break.)
m (Update main article link.)
Line 8: Line 8:
== Navigation Mesh Editing ==
== Navigation Mesh Editing ==
{{main|Nav Mesh Editing}}
{{main|Nav Mesh Editing}}
{{main|Navigation Mesh Commands}}
{{main|Nav Mesh Commands}}
The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with <code>nav_generate</code> (which requires {{ent|sv_cheats|1}} and {{ent|nav_edit|1}}).
The Navigation Mesh Editing is done in-game. A (new) .nav file can be generated with <code>nav_generate</code> (which requires {{ent|sv_cheats|1}} and {{ent|nav_edit|1}}).



Revision as of 00:30, 11 September 2021

English (en)Deutsch (de)Esperanto (eo)Español (es)日本語 (ja)Русский (ru)中文 (zh)Translate (Translate)

A Navigation Mesh (or shorter: nav mesh) represents the "walkable areas" of a map. This data is required by Bots and Hostages in Template:Game link and Template:Game link, and all NextBot entities in Template:Game link, Template:Game link, Template:Game link and Template:Game link, allowing them to "know" where they can go and how to move around in the environment.

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
Template:Game link TheNavMesh 0 Garry's Mod is using the base navigation mesh(It doesn't use it's own implementation unlike Valve games)
Template:Game link CSNavMesh 1
Template:Game link CTFNavMesh 2
Template:Game link TerrorNavMesh 13
Template:Game link TerrorNavMesh 14
Template:Game link CSNavMesh 1 (Ported from Counter Strike: Source?)

See also

External Links