Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

NavMeshModifierTrait

const NavMeshModifierTrait: Trait<{ cost: number; padding: () => number | null; size: () => [number, number, number]; }>

A box about its entity that the navmesh’s path search pays cost a metre to cross, or never crosses where cost is Infinity, which <NavMeshModifier> sets. The body walks through it: the character controller never reads it.