Talos docs

BobConfig

Since 0.6

The walk bob: a cycle that advances with the distance the target walks, at an amplitude that grows with its speed.

Plain text

It moves the view-model (ViewModel, from {@link FirstPersonRig.bob}) and, only when camera asks, the eye.

Signature

export interface BobConfig {
  /** Metres walked per full cycle (two steps). Default 2. */
  stride?: number
  /** Horizontal speed, m/s, at which the bob reaches full amplitude. Default 4. */
  fullSpeed?: number
  /**
   * Metres the eye dips at full bob. Default 0: only the view-model bobs. A moving eye is the motion
   * that makes some players sick (and every VR player), so it is opt-in and small: 0.02-0.05.
   */
  camera?: number
}

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

Members

MemberSignatureDescription
stridestride?: numberMetres walked per full cycle (two steps). Default 2.
fullSpeedfullSpeed?: numberHorizontal speed, m/s, at which the bob reaches full amplitude. Default 4.
cameracamera?: numberMetres the eye dips at full bob. Default 0: only the view-model bobs. A moving eye is the motion that makes some players sick (and every VR player), so it is opt-in and small: 0.02-0.05.