From f96fc9b48d235f100aa1afc1015441bf95d689c5 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Wed, 15 Mar 2023 23:18:34 +0000 Subject: [PATCH] update check --- src/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render.rs b/src/render.rs index 2cc7d97..7a34c88 100644 --- a/src/render.rs +++ b/src/render.rs @@ -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; }