update to have diff abs
This commit is contained in:
parent
92fb1478b7
commit
11c776c2a9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user