struct
NavMeshModifierComponent
Per-entity nav-mesh area override. Attach to an entity that also has a MeshRenderer to tag every triangle that mesh contributes to the bake with a custom area type.
- Module
- Game
- Header
#include "Game/Components/NavMeshModifierComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Area types follow Unity's NavMeshModifier convention: 0 = Walkable (default — same as having no modifier) 1 = Water (walkable but agents may path around it via filter cost) 2 = Ladder 3..62 = user-defined 63 = Not Walkable (the mesh is cut OUT of the bake — useful for fences, glass walls, "fake floor" decals that shouldn't be paths).
dtQueryFilter::setAreaCost lets agents weight different areas — e.g. AI that "avoids water unless necessary". The default cost is 1.0; a water tile with cost 2.0 makes the planner prefer dry routes.
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
int32_t | areaType | Default 0. |
bool | overrideArea | Default true. |
static constexpr int32_t | AREA_WALKABLE | Default 0. |
static constexpr int32_t | AREA_WATER | Default 1. |
static constexpr int32_t | AREA_LADDER | Default 2. |
static constexpr int32_t | AREA_NOT_WALKABLE | Default 63. |
Constructors
| Signature | Name | Description |
|---|---|---|
NavMeshModifierComponent() = default | NavMeshModifierComponent |
Function details
NavMeshModifierComponent
C++
NavMeshModifierComponent() = defaultGenerated from Game/Components/NavMeshModifierComponent.h via game.json · Nov 5, 2026Version 1.0.0