Talos docs

ShotList

Since 0.6

A shot list, sampled by time.

Plain text

Signature

export class ShotList {
  readonly shots: readonly Shot[]
  readonly loop: boolean
  readonly defaultFov: number
  readonly starts: readonly number[]
  readonly duration: number
  constructor(shots: Shot[], options: ShotListOptions = {})
  sample(time: number, resolve: TargetResolver = () => null): ShotSample
}

Import: import { ShotList } from "@argus/gameplay"

Members

MemberSignatureDescription
shotsreadonly shots: readonly Shot[]
loopreadonly loop: boolean
defaultFovreadonly defaultFov: number
startsreadonly starts: readonly number[]Start time of each shot, seconds.
durationreadonly duration: numberLength of the whole list, seconds.
constructorconstructor(shots: Shot[], options: ShotListOptions = {})
samplesample(time: number, resolve: TargetResolver = () => null): ShotSampleThe camera at time seconds. Entity targets go through resolve; one it cannot find looks at the origin.