Skip to main content

approach

Function approach 

Source
pub fn approach(current: f32, target: f32, max_delta: f32) -> f32
Expand description

Moves current towards target by at most max_delta (never overshoots).