Better movement lerping

This commit is contained in:
Joshua Barretto 2019-08-03 21:58:34 +01:00
parent 8b9a92b30e
commit f08d8bb00a

View File

@ -120,7 +120,7 @@ impl<'a> System<'a> for Sys {
&& (ori.0.normalized() - Vec3::from(ori_dir).normalized()).magnitude_squared()
> 0.001
{
ori.0 = vek::ops::Slerp::slerp(ori.0, ori_dir.into(), 5.0 * dt.0);
ori.0 = vek::ops::Slerp::slerp(ori.0, ori_dir.into(), 15.0 * dt.0);
}
}