mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make ori more precise
This commit is contained in:
parent
fe0097c085
commit
6b69b24185
@ -118,7 +118,7 @@ impl<'a> System<'a> for Sys {
|
||||
};
|
||||
if ori_dir.magnitude_squared() > 0.0001
|
||||
&& (ori.0.normalized() - Vec3::from(ori_dir).normalized()).magnitude_squared()
|
||||
> 0.01
|
||||
> 0.001
|
||||
{
|
||||
ori.0 = vek::ops::Slerp::slerp(ori.0, ori_dir.into(), 5.0 * dt.0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user