Talos docs

ShotsProps

Since 0.6
Plain text

Signature

export interface ShotsProps {
  /** The shots, in order. */
  shots?: Shot[]
  /** Shorthand for one orbiting shot, appended after `shots`. */
  orbit?: OrbitShotSpec
  /** Play again from the first shot when the last ends. Default false. */
  loop?: boolean
  /** Field of view when no key gives one. Default 55. */
  fov?: number
  /** Emitted once when the list ends (never while looping). Default `shots-done`. */
  doneEvent?: string
  /** Wait for this event before the first shot. Absent, start at once. */
  startOn?: string
  /** When the list ends, give the view back to the scene camera (`ctx.camera.follow(null)`). Default false: hold the last pose. */
  release?: boolean
}

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

Members

MemberSignatureDescription
shotsshots?: Shot[]The shots, in order.
orbitorbit?: OrbitShotSpecShorthand for one orbiting shot, appended after shots.
looploop?: booleanPlay again from the first shot when the last ends. Default false.
fovfov?: numberField of view when no key gives one. Default 55.
doneEventdoneEvent?: stringEmitted once when the list ends (never while looping). Default shots-done.
startOnstartOn?: stringWait for this event before the first shot. Absent, start at once.
releaserelease?: booleanWhen the list ends, give the view back to the scene camera (ctx.camera.follow(null)). Default false: hold the last pose.