Compare commits

...

2 Commits

Author SHA1 Message Date
cb9eb57a2c update diff target 2023-03-15 23:00:06 +00:00
0bce36f41d update diff target 2023-03-15 22:58:46 +00:00

View File

@ -331,11 +331,11 @@ pub trait Lerp {
impl Lerp for f64 { impl Lerp for f64 {
fn lerp(self, other: &Self, diff: f64) -> Self { fn lerp(self, other: &Self, diff: f64) -> Self {
let delta = diff / 1_000_000.0; let delta = diff;
let lerped = self + ((*other - self) * 0.5 * delta); let lerped = self + ((*other - self) * 0.5 * delta);
if *other != self { 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 lerped