Talos docs

FirstPersonConfig

Since 0.6
Plain text

Signature

export interface FirstPersonConfig {
  target: CameraTarget
  /** Metres above the target's origin. */
  eyeHeight: number
  /** Lateral and forward offset from the target's origin, before eye height. */
  eyeOffset: Vec3
  pitchMinDeg: number
  pitchMaxDeg: number
  /** Degrees per second at full stick deflection. The mouse is not a rate and ignores it (`RigInput.lookDelta`). */
  yawSpeedDeg: number
  /** Degrees per second at full stick deflection, up and down. */
  pitchSpeedDeg: number
  /**
   * Vertical field of view, degrees. Absent (the default) inherits the view's own — the scene
   * camera's `fov` — and sends none, so the scene file's number is the one drawn. A number here
   * replaces it, and the engine says so once (`camera-fov-overrides-scene`) when the two differ.
   */
  fov?: number
  /**
   * The walk bob. Absent (the default for an existing project) or `false` is off; `true` or a
   * {@link BobConfig} is on, and moves the view-model only unless `camera` is set.
   */
  bob?: boolean | BobConfig
  yaw: number
  pitch: number
}

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

Members

MemberSignatureDescription
targettarget: CameraTarget
eyeHeighteyeHeight: numberMetres above the target's origin.
eyeOffseteyeOffset: Vec3Lateral and forward offset from the target's origin, before eye height.
pitchMinDegpitchMinDeg: number
pitchMaxDegpitchMaxDeg: number
yawSpeedDegyawSpeedDeg: numberDegrees per second at full stick deflection. The mouse is not a rate and ignores it (RigInput.lookDelta).
pitchSpeedDegpitchSpeedDeg: numberDegrees per second at full stick deflection, up and down.
fovfov?: numberVertical field of view, degrees. Absent (the default) inherits the view's own — the scene camera's fov — and sends none, so the scene file's number is the one drawn. A number here replaces it, and the engine says so once (camera-fov-overrides-scene) when the two differ.
bobbob?: boolean | BobConfigThe walk bob. Absent (the default for an existing project) or false is off; true or a {@link BobConfig} is on, and moves the view-model only unless camera is set.
yawyaw: number
pitchpitch: number