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

Camera2DSettings

A Camera2D’s props with every default filled in, as its trait holds them.

Property Type Description
aimHeight number -
bounds PlaneBounds | null | undefined Undefined for the mounted maps’ extent, null for none.
dampingSeconds number -
deadZoneHeight number -
deadZoneWidth number -
fit Camera2DFit -
follow ViewTarget | null -
followHeight boolean -
fov number -
highGroundDampingSeconds number -
highGroundHeight number Infinity with no high ground.
highGroundPitch number -
lookAheadDampingSeconds number -
lookAheadSeconds number -
maxZoom number -
minZoom number -
offsetRight number -
offsetUp number -
pitch number -
pixelPerfect boolean -
pixelsPerMetre number -
plane Plane2D -
projection CameraProjection -
referenceHeight number -
referenceWidth number -
restYawRadians number -
shakeTexels number -
turnRate number -
yawLimitRadians number 0 with no orbit.
zoom number -