ShotsProps
Since 0.6
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
| Member | Signature | Description |
|---|---|---|
shots | shots?: Shot[] | The shots, in order. |
orbit | orbit?: OrbitShotSpec | Shorthand for one orbiting shot, appended after shots. |
loop | loop?: boolean | Play again from the first shot when the last ends. Default false. |
fov | fov?: number | Field of view when no key gives one. Default 55. |
doneEvent | doneEvent?: string | Emitted once when the list ends (never while looping). Default shots-done. |
startOn | startOn?: string | Wait for this event before the first shot. Absent, start at once. |
release | release?: boolean | When the list ends, give the view back to the scene camera (ctx.camera.follow(null)). Default false: hold the last pose. |