[This is preliminary documentation and is subject to change.]

The purpose of NMGen is to generate navigation meshes from arbitrary source geometry. Features fall into two categories: Core and 'standard build'.

The core features are located in the org.critterai.nmgen namespace and involve creating simplified polygon mesh data from detailed triangle-based source geometry. You can code your own build process from scratch using these features, but it will require a significant amount of work and detailed knowlege of all aspects of the process.

The standard build process implements a flexible, extendable build process suitable for use at design time. It takes care of many of the mundane details for you. Its features are implemented in the following namespaces:

Common extentions: org.critterai.nmbuild

Unity extensions: org.critterai.nmbuild.u3d.editor

The standard build process has three main steps which will be covered in detail throughout the rest of this section.

  1. Compile the input.
  2. The NMGen Build. (Produces the polygon meshes.)
  3. Create the navigation mesh.


CAINav uses the OpenGL coordinate system.

The Standard Build Process

Standard Navmesh Build

See Also