update lerp functionn
This commit is contained in:
parent
81930f35eb
commit
b31c967ca0
@ -335,16 +335,16 @@ impl Lerp for f64 {
|
||||
|
||||
let change = (*other - self) * 0.1 * delta;
|
||||
|
||||
if change < 0.0000001 {
|
||||
return *other;
|
||||
}
|
||||
|
||||
let lerped = self + change;
|
||||
|
||||
if *other != self {
|
||||
println!("c: {} target:{} lerp: {} diff: {} move: {}", self, other, lerped, diff, change);
|
||||
}
|
||||
|
||||
if change < 0.0000001 {
|
||||
return *other;
|
||||
}
|
||||
|
||||
lerped
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user