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

setCameraFocus

setCameraFocus(camera, point): void

Says which point camera looks at, in the world: what the look’s fog starts back from and the sun’s near cascade centres on. Camera2D and the follow camera name theirs; a game’s own rig names its point as it moves, and null when it looks at nothing in particular, as a free camera does, or stops.

Parameter Type
camera Camera
point Vector3 | null

void