update diff target
This commit is contained in:
parent
be35ecb310
commit
0bce36f41d
@ -331,7 +331,7 @@ 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 / 1_000.0;
|
||||||
let lerped = self + ((*other - self) * 0.5 * delta);
|
let lerped = self + ((*other - self) * 0.5 * delta);
|
||||||
|
|
||||||
if *other != self {
|
if *other != self {
|
||||||
|
Loading…
Reference in New Issue
Block a user