five-on-it / packages/net-client/src/smoothing / snapsAt
Function: snapsAt()
snapsAt(
pace):number
Defined in: packages/net-client/src/smoothing.ts:37
The correction (m) from which a body at pace (m/s) is drawn at its true pose at once instead of eased there: the one the ease would move the drawn body faster than a third again its pace for (BLEND_PACE_SHARE, BLEND_PACE_FLOOR at the least): 1.25 cm at rest, 37 cm at 80 km/h. Corrections above 3 m snap whatever the pace (a reset should look like a teleport).
Parameters
pace
number
Returns
number