update check
This commit is contained in:
parent
788b705c87
commit
f96fc9b48d
@ -333,7 +333,7 @@ impl Lerp for f64 {
|
|||||||
fn lerp(self, other: &Self, diff: f64) -> Self {
|
fn lerp(self, other: &Self, diff: f64) -> Self {
|
||||||
let delta = diff / 1000.0;
|
let delta = diff / 1000.0;
|
||||||
|
|
||||||
let change = (*other - self) * 0.3 * delta;
|
let change = (*other - self) * 0.4 * delta;
|
||||||
|
|
||||||
let lerped = self + change;
|
let lerped = self + change;
|
||||||
|
|
||||||
@ -341,7 +341,7 @@ impl Lerp for f64 {
|
|||||||
println!("c: {} target:{} lerp: {} move: {}", self, other, lerped, change);
|
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;
|
return *other;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user