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

FlightTrait

const FlightTrait: CoreTrait<{ gravity: () => Vector3; held: boolean; launches: number; position: () => Vector3; tick: number; velocity: () => Vector3; }>

A flight body’s last launch: where it was and how fast it went at tick, the pull it falls by, fixed at the launch so a later change of the scene’s gravity never rewrites it, whether it is held still, and how many launches it has had, which names each. Streams exactly to every page. Read-only to a game, which writes it with launchFlight and holdFlight.