update lerp functionn

This commit is contained in:
Andre Henriques 2023-03-15 23:05:17 +00:00
parent 81930f35eb
commit b31c967ca0

View File

@ -335,16 +335,16 @@ impl Lerp for f64 {
let change = (*other - self) * 0.1 * delta;
if change < 0.0000001 {
return *other;
}
let lerped = self + change;
if *other != self {
println!("c: {} target:{} lerp: {} diff: {} move: {}", self, other, lerped, diff, change);
}
if change < 0.0000001 {
return *other;
}
lerped
}
}