Renderer · interface
ShotParams
Explained in Hello world.
interface ShotParamsimport type { ShotParams } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
kindreadonly | ShotKind | |
distancereadonly | number | How far the camera sits from its subject, in metres. |
heightreadonly | number | How high above it. |
fovDegreadonly | number | |
orbitRatereadonlyoptional | number | Radians per second, for orbit. |
holdSecreadonlyoptional | number | How long this shot is going to hold, in seconds, when the caller knows.MoreOnly 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 |
anchorreadonlyoptional | readonly [number, number, number] | A fixed world point. lookAt frames it; flyby uses it as the station to
shoot from. Ignored by the others. |