Skip to main content

smooth_damp_vec3

Function smooth_damp_vec3 

pub fn smooth_damp_vec3(
    current: [f32; 3],
    target: [f32; 3],
    velocity: &mut [f32; 3],
    smooth_time: f32,
    max_speed: f32,
    delta_time: f32,
) -> [f32; 3]
Expand description

Smoothly damp a 3D vector toward a target.