struct
NavMeshBuilder::Snapshot
Thread-safe snapshot of every walkable triangle in the scene at the moment SnapshotScene was called. Cheap to move between threads (just std::vector buffers). Produced on the main thread (touches ECS); consumed by Recast on either thread.
- Module
- AINavigation
- Header
#include "AINavigation/NavMeshBuilder.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
std::vector<float> | vertices | interleaved xyz |
std::vector<int> | triangles | 3 ints per tri |
std::vector<uint8_t> | triAreas | 1 area type per tri (0 = default walkable) |
int | triangleCount | Default 0. |
Vec3 | boundsMin | Default Vec3(1e30f, 1e30f, 1e30f). |
Vec3 | boundsMax | Default Vec3(-1e30f, -1e30f, -1e30f). |
std::vector<OffMeshConnection> | links | |
uint64_t | terrainRevision | Fold of every terrain's paint and build state at snapshot time. The CDLOD terrain contributes no CPU mesh, so nothing else in this snapshot notices a hole being painted or erased — and a hole is exactly what removes triangles from the soup. Compare against TerrainGeometryRevision to know a bake went stale. Default 0. |
Generated from AINavigation/NavMeshBuilder.h via ainavigation.json · Oct 27, 2026Version 1.0.0