update check
This commit is contained in:
parent
29efa6be83
commit
788b705c87
@ -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.2 * delta;
|
||||
let change = (*other - self) * 0.3 * delta;
|
||||
|
||||
let lerped = self + change;
|
||||
|
||||
@ -341,7 +341,7 @@ impl Lerp for f64 {
|
||||
println!("c: {} target:{} lerp: {} move: {}", self, other, lerped, change);
|
||||
}
|
||||
|
||||
if change < 0.001 && diff != 0.0 {
|
||||
if (*other - self) < 0.01 && diff != 0.0 {
|
||||
return *other;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user