update check

This commit is contained in:
Andre Henriques 2023-03-15 23:16:50 +00:00
parent 29efa6be83
commit 788b705c87

View File

@ -333,7 +333,7 @@ impl Lerp for f64 {
fn lerp(self, other: &Self, diff: f64) -> Self {
let delta = diff / 1000.0;
let change = (*other - self) * 0.2 * delta;
let change = (*other - self) * 0.3 * delta;
let lerped = self + change;
@ -341,7 +341,7 @@ impl Lerp for f64 {
println!("c: {} target:{} lerp: {} move: {}", self, other, lerped, change);
}
if change < 0.001 && diff != 0.0 {
if (*other - self) < 0.01 && diff != 0.0 {
return *other;
}