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

cameraShakeSettings

const cameraShakeSettings: object

How a full shake moves the camera, and how fast it fades.

Name Type Default value Description
degrees number 1.2 Degrees the view turns left and right, and up and down, at a whole shake.
hertz number 11 How many times a second the view swings.
radius number 20 Metres from the player at which a moment’s shake fades to none, where the moment names no reach of its own.
recovery number 1.5 Shake lost a second: a whole shake is gone in two thirds of a second, and half a shake in a third.
rollDegrees number 2.4 Degrees the view rolls about its middle at a whole shake: the most of the turn, since a roll moves the edges of the view and leaves its middle where it points.