RigInput
Since 0.6
The per-tick input a rig consumes.
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
| Member | Signature | Description |
|---|---|---|
look | look: 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. |
lookDelta | lookDelta?: 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. |
zoom | zoom: number | -1..1; positive pulls the camera in (orbit and third-person only). |