speed up
This commit is contained in:
parent
5418a139f2
commit
92fb1478b7
@ -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.4 * delta;
|
let change = (*other - self) * 0.8 * delta;
|
||||||
|
|
||||||
let lerped = self + change;
|
let lerped = self + change;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user