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

NavMeshMoveTrait

const NavMeshMoveTrait: CoreTrait<{ refusal: NavMeshMoveRefusal | null; }>

On each character no player controls that a navmesh move was tried for: why its last move went through the character controller, or null where the navmesh moved it. Read it with readTrait(npc, NavMeshMoveTrait). The engine writes it, only where it changes, and a game never writes it.