Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

CorrectionSmoothing

How her page draws a correction of an entity she predicts: the drawn pose closes the gap over 0.1 s for a gap up to 0.1 m and longer in proportion, up to maxSeconds, and jumps at once past the snap: the larger of snapDistance and the distance the entity covers in speedSnapSeconds at the speed the room’s word gives it. So a character a kart throws at 20 m/s eases across the 5 m her page learns of a round trip late, while one the room moved far as she stood jumps.

Property Type Description
maxSeconds number The longest a correction’s ease takes, in seconds.
snapDistance number Metres of correction past which the drawn entity jumps, however slowly it moves.
speedSnapSeconds number Seconds of the entity’s speed the snap grows to, past snapDistance: the speed is how far the re-run from the room’s word carried it, over the re-run’s time. Cover the round trip and her page’s lead, since a launch her page learns of late is that far ahead; 0 keeps the snap at snapDistance.