Skip to content

five-on-it / packages/net-client/src/predictor / QUANTIZED_AGREEMENT

Variable: QUANTIZED_AGREEMENT ​

const QUANTIZED_AGREEMENT: object

Defined in: packages/net-client/src/predictor.ts:149

How far the server's word on a light piece may lie from the prediction's for the same tick and still be the same state: one step of its quantized pose (@foi/protocol's quantize.ts: the pieces travel quantized, a position in 1/256 m, a velocity in 1/64 m/s, a spin in 1/256 rad/s, a rotation's smallest three components in ten bits each).

Type Declaration ​

position ​

readonly position: number

rotation ​

readonly rotation: 0.002 = 2e-3

spin ​

readonly spin: number

velocity ​

readonly velocity: number