Talos docs

CameraProps

Since 0.6
Plain text

Signature

export interface CameraProps {
  /** Which rig starts active. Default `fixed` for a camera entity that names no kind. */
  kind?: CameraKind
  /** Config for the active rig. */
  config?: Record<string, unknown>
  /** Extra rigs available to `camera-switch`, keyed by kind. */
  rigs?: Partial<Record<CameraKind, Record<string, unknown>>>
  /** Read the look axis and steer the rig with it. Default true. */
  steerable?: boolean
  /** Rebinding data for `InputMap.fromJSON`. */
  input?: Record<string, unknown>
  /** Default blend, in seconds, for `camera-switch`. */
  blend?: number
}

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

Members

MemberSignatureDescription
kindkind?: CameraKindWhich rig starts active. Default fixed for a camera entity that names no kind.
configconfig?: Record<string, unknown>Config for the active rig.
rigsrigs?: Partial<Record<CameraKind, Record<string, unknown>>>Extra rigs available to camera-switch, keyed by kind.
steerablesteerable?: booleanRead the look axis and steer the rig with it. Default true.
inputinput?: Record<string, unknown>Rebinding data for InputMap.fromJSON.
blendblend?: numberDefault blend, in seconds, for camera-switch.