Skip to content

focusCamera

focusCamera(world, entity): Player | null

Defined in: packages/engine/src/gameplay/camera/camera.ts:235

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

Player | null