effect-motion
API Referenceeffect-motionNamespacesCameraType aliases

CameraTarget

type CameraTarget =

Type Alias: CameraTarget

type CameraTarget =
  | Instance
  | Effect.Effect<Instance, never, Runner>
| Partial<Position>;

Defined in: packages/motion/src/Camera.ts:45

What the camera helpers accept as something to aim at.

Remarks

An instance is read LIVE each frame, so aiming tracks it as it moves — the usual case. A plain position is fixed, for aiming at a spot where no entity exists.

On this page