From cb9eb57a2c525827a1ef2f58199d0063e208059e Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Wed, 15 Mar 2023 23:00:06 +0000 Subject: [PATCH] update diff target --- src/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render.rs b/src/render.rs index 2325bda..5f049bd 100644 --- a/src/render.rs +++ b/src/render.rs @@ -331,11 +331,11 @@ pub trait Lerp { impl Lerp for f64 { fn lerp(self, other: &Self, diff: f64) -> Self { - let delta = diff / 1_000.0; + let delta = diff; let lerped = self + ((*other - self) * 0.5 * delta); if *other != self { - println!("c: {} target:{} lerp: {}", self, other, lerped); + println!("c: {} target:{} lerp: {} diff: {} move: {}", self, other, lerped, diff, (*other - self) * 0.5); } lerped