Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / CameraShot

Type Alias: CameraShot ​

ts
type CameraShot = {
  at: CameraMark;
  moveTo?: CameraMark;
  lookAt?: CameraMark;
  duration: number;
  blendIn?: number;
  fov?: number;
  ease?: CameraEase;
};

Defined in: camera/CameraDirector.ts:15

One camera move in a cutscene.

Properties ​

PropertyTypeDescriptionDefined in
atCameraMarkWhere the camera starts. An entity also lends its rotation if lookAt is left out.camera/CameraDirector.ts:17
moveTo?CameraMarkWhere it ends up, for a move; left out, it stays at at.camera/CameraDirector.ts:19
lookAt?CameraMarkWhat it keeps facing. A moving entity is followed.camera/CameraDirector.ts:21
durationnumberSeconds on this shot.camera/CameraDirector.ts:23
blendIn?numberSeconds to ease in from the last camera; 0 is a cut.camera/CameraDirector.ts:25
fov?numberField of view in degrees during this shot.camera/CameraDirector.ts:27
ease?CameraEaseHow moveTo eases.camera/CameraDirector.ts:29