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.
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
| Member | Signature | Description |
|---|---|---|
stride | stride?: number | Metres walked per full cycle (two steps). Default 2. |
fullSpeed | fullSpeed?: number | Horizontal speed, m/s, at which the bob reaches full amplitude. Default 4. |
camera | camera?: 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. |