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

ColliderTrait

const ColliderTrait: CoreTrait<{ colliders: () => readonly ColliderRecord[]; }>

An entity’s colliders, by index: what its body is shaped of. Read-only to a game by type, which reads it with readTrait(entity, ColliderTrait) and changes one with setCollider on its authoritative step, and a voxel or a height built from a grid with editGrid.