Skip to content

API Interface InputOptions

github-actions[bot] edited this page Nov 24, 2026 · 1 revision

Interface: InputOptions

Defined in: src/engine/net/messages.ts:63

Options for defineInput.

Properties

encoding?

readonly encoding?: Readonly<Record<string, {
  quantize?: number;
}>>;

Defined in: src/engine/net/messages.ts:71

Per-field wire encoding, replication's vocabulary (ADR 0337): { x: { quantize: 1 / 127 } } sends x as whole steps of 1/127. Values are rounded to the step when written, so the client's own copy (and its prediction) is what the server receives.


redundancy?

readonly redundancy?: number;

Defined in: src/engine/net/messages.ts:65

Past ticks' inputs sent again with each tick's, so a lost packet doesn't lose input. Default 3.

Clone this wiki locally