Skip to main content

exp_decay

Function exp_decay 

Source
pub fn exp_decay(current: f32, target: f32, rate: f32, dt: f32) -> f32
Expand description

Exponential decay: value decays toward target with rate per second