Talos docs

RigInput

Since 0.6

The per-tick input a rig consumes.

Plain text

look and lookDelta are already sensitivity- and inversion-adjusted.

Signature

export interface RigInput {
  /**
   * `[yaw, pitch]` in -1..1, a RATE (a stick): the rig turns by it times its speed and `dt`.
   * Positive yaw turns right, positive pitch looks up.
   */
  look: Vec2
  /**
   * `[yaw, pitch]` in **degrees**, a DISPLACEMENT (the mouse this tick): the rig turns by exactly
   * this, with no `dt`, no speed and no clamp. Absent reads as zero.
   */
  lookDelta?: Vec2
  /** -1..1; positive pulls the camera in (orbit and third-person only). */
  zoom: number
}

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

Members

MemberSignatureDescription
looklook: Vec2[yaw, pitch] in -1..1, a RATE (a stick): the rig turns by it times its speed and dt. Positive yaw turns right, positive pitch looks up.
lookDeltalookDelta?: Vec2[yaw, pitch] in degrees, a DISPLACEMENT (the mouse this tick): the rig turns by exactly this, with no dt, no speed and no clamp. Absent reads as zero.
zoomzoom: number-1..1; positive pulls the camera in (orbit and third-person only).