update check

This commit is contained in:
Andre Henriques 2023-03-15 23:18:34 +00:00
parent 788b705c87
commit f96fc9b48d

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.3 * delta;
let change = (*other - self) * 0.4 * delta;
let lerped = self + change;
@ -341,7 +341,7 @@ impl Lerp for f64 {
println!("c: {} target:{} lerp: {} move: {}", self, other, lerped, change);
}
if (*other - self) < 0.01 && diff != 0.0 {
if change < 1.0 && diff != 0.0 {
return *other;
}