1681-engine / index / TrackOptions
Interface: TrackOptions ​
Defined in: src/core/Camera.ts:4
Properties ​
deadzoneHeight? ​
ts
optional deadzoneHeight?: number;Defined in: src/core/Camera.ts:12
deadzoneWidth? ​
ts
optional deadzoneWidth?: number;Defined in: src/core/Camera.ts:11
A box round the screen's centre (world px) the target may move in without the camera moving.
lerp? ​
ts
optional lerp?: number;Defined in: src/core/Camera.ts:9
How much of the way to the target the camera closes each 60th of a second (0–1, default 1: locked on). 0.1 is a soft follow; the rate is the same at any frame rate.
offsetX? ​
ts
optional offsetX?: number;Defined in: src/core/Camera.ts:14
Where on the target to look (world px from its position), e.g. a little above a body's feet.
offsetY? ​
ts
optional offsetY?: number;Defined in: src/core/Camera.ts:15