Skip to content

CameraFollowOptions

Defined in: src/modules/camera/camera.ts:149

Options for makeFollowCameraSystem.

cameraTag: TagDef

Defined in: src/modules/camera/camera.ts:151


optional deadzoneH?: number

Defined in: src/modules/camera/camera.ts:153

Deadzone half-height (world units); the camera chases vertically only once the target leaves this band.


optional deadzoneW?: number

Defined in: src/modules/camera/camera.ts:155

Deadzone half-width (world units); the camera chases horizontally only once the target leaves this band.


optional name?: string

Defined in: src/modules/camera/camera.ts:150


positionDef: ComponentDef<{ x: number; y: number; }>

Defined in: src/modules/camera/camera.ts:156


optional runAfter?: string[]

Defined in: src/modules/camera/camera.ts:157


optional smoothing?: number

Defined in: src/modules/camera/camera.ts:159

Exponential smoothing speed (per second); omit for an instant snap (Godot position_smoothing). Requires dtMs on the tick ctx.


targetTag: TagDef

Defined in: src/modules/camera/camera.ts:160