|
Nebula
|
#include <navmeshdocument.h>
A navmesh open in the asset editor: the agent it is baked for, the build settings, and the geometry it is baked from, which is gathered from entities of the scene.
The work file is a description, the bake turns it into the Detour tiles. Baking saves the description and has the batcher bake it; the area volumes of the scene are gathered into it on every bake, since they are not chosen. The baked navmesh is loaded while the document is open, so it shows in the viewport and paths can be tested on it.
Every change is a command holding the description as it was and as it is, so undo puts it back whole. The description is small: settings and a list of sources.