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

moveAlongNavMesh

moveAlongNavMesh(step, entity, moveAlongNavMeshOptions): boolean

Moves entity by velocity for this tick along the world’s navmesh surface rather than through the character controller, sliding along the navmesh’s edges, with no gravity, step or push: a crowd of chasers costs a navmesh query each rather than a sweep. Answers whether the navmesh moved it: false in a world with no navmesh, where no polygon lies near it, or for a streamed entity, and then it stands where it was and the caller moves it another way. On the authoritative step alone, which the type holds. As Detour’s moveAlongSurface and Unity’s NavMeshAgent.Move.

Parameter Type
step AuthoritativeStep
entity Entity
moveAlongNavMeshOptions MoveAlongNavMeshOptions

boolean