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

focusCamera

focusCamera(world, entity): ViewTarget | null

Flies the mounted orbit to the entity’s drawn object, at the distance that fits it, and stops the camera following so the frame’s aim leaves it there; the follow it stopped, or null where there was none. Nothing moves where no camera is mounted or nothing draws the entity.

Parameter Type
world World
entity Entity

ViewTarget | null