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

CameraShakeTrait

const CameraShakeTrait: LocalTrait<Trait<{ seconds: number; trauma: number; }>>

The shake a camera holds: its trauma, from 0 to a whole shake at 1, and the seconds its swing has run. On the camera’s own entity, which shakeCamera gives it.