Skip to content

FollowOptions

Options for camera.follow.

optional deadzone?: object

A box around the screen center, in screen pixels, where the target moves without moving the camera.

height: number

width: number


optional lerp?: number

How quickly the camera catches up, from 0 to 1: the share of the distance it covers per frame at 60 fps (the same at any frame rate). 1, the default, keeps the target centered; 0.1 trails it smoothly.