Skip to main content

VELOCITY_SLEEP_PX_PER_S

Constant VELOCITY_SLEEP_PX_PER_S 

Source
pub const VELOCITY_SLEEP_PX_PER_S: f32 = 3.0;
Expand description

Velocity below which the integrator snaps to zero, in px/s. At 60 Hz a velocity of 3 px/s produces ~0.05 px of motion per frame - imperceptible, but heavy enough to avoid eternal sub-pixel ticks.