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

PathTrait

const PathTrait: AnyEntityPredictedTrait<Trait<{ corners: () => Vector3[]; destination: () => Vector3; }>>

Where the character is walking: the corners of a navmesh path with the nearest first, and the point asked for, which the corners reach only where a route to it exists. Empty corners are standing: reaching one takes it off the front, and the player’s own steer empties the rest.