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 and a voxel cell with setVoxel on its authoritative step.