update to have diff abs

This commit is contained in:
Andre Henriques 2023-03-15 23:23:08 +00:00
parent 92fb1478b7
commit 11c776c2a9

View File

@ -341,7 +341,7 @@ impl Lerp for f64 {
println!("c: {} target:{} lerp: {} move: {}", self, other, lerped, change);
}
if (*other - self) < 2.0 && diff != 0.0 {
if (*other - self).abs() < 2.0 && diff != 0.0 {
return *other;
}