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

InWorldTrait

const InWorldTrait: Trait<{ ground: () => Entity | null; }>

The ground of the World an entity mounted in, which the step reads that World’s gravity from and the devtools frame by. An Entity and a Player inside a World add it; one spawned elsewhere, by a system or a room’s stream, has none and falls at the gravity of the ground the physics stands on.