Renderer · interface

ShotParams

Explained in Hello world.

interface ShotParams
import type { ShotParams } from '@driftengine/core';

Properties

NameTypeDescription
kindreadonlyShotKind
distancereadonlynumberHow far the camera sits from its subject, in metres.
heightreadonlynumberHow high above it.
fovDegreadonlynumber
orbitRatereadonlyoptionalnumberRadians per second, for orbit.
holdSecreadonlyoptionalnumberHow long this shot is going to hold, in seconds, when the caller knows.
More

Only motion within a shot needs it, and only to know where the end is so it can arrive there rather than being cut off mid-travel. An orbit given a hold eases across the whole of it; one without eases in and then keeps its rate, because inventing a duration would be worse than not having one.

anchorreadonlyoptionalreadonly [number, number, number]A fixed world point. lookAt frames it; flyby uses it as the station to shoot from. Ignored by the others.