Talos docs

ShotKey

Since 0.6

One keyframe of a shot.

Plain text

Signature

export interface ShotKey {
  /** Seconds from the start of the shot. The first key of a shot is at 0 whatever it says. */
  at: number
  /** Where the eye is. */
  position: Vec3
  /** What it looks at: a world point, or an entity id resolved on every sample. */
  target: Vec3 | string
  /** Vertical field of view in degrees. Absent, the previous key's, else the list's default. */
  fov?: number
  /** How the move into this key eases. Absent, the shot's `ease`. `hold` stays on the previous key and jumps at `at`. */
  ease?: ShotEase
}

Import: import type { ShotKey } from "@argus/gameplay"

Members

MemberSignatureDescription
atat: numberSeconds from the start of the shot. The first key of a shot is at 0 whatever it says.
positionposition: Vec3Where the eye is.
targettarget: Vec3 | stringWhat it looks at: a world point, or an entity id resolved on every sample.
fovfov?: numberVertical field of view in degrees. Absent, the previous key's, else the list's default.
easeease?: ShotEaseHow the move into this key eases. Absent, the shot's ease. hold stays on the previous key and jumps at at.