Double the speed factor of pos interp

This commit is contained in:
Snowram 2021-06-15 22:11:06 +02:00
parent 1ed6a04a34
commit 4d3362586f

View File

@ -43,7 +43,7 @@ impl<'a> System<'a> for Sys {
{
// Update interpolation values, but don't interpolate far things or objects
if i.pos.distance_squared(pos.0) < 64.0 * 64.0 && !matches!(body, Body::Object(_)) {
i.pos = Lerp::lerp(i.pos, pos.0 + vel.0 * 0.03, 10.0 * dt.0);
i.pos = Lerp::lerp(i.pos, pos.0 + vel.0 * 0.03, 20.0 * dt.0);
i.ori = Ori::slerp(i.ori, *ori, base_ori_interp(body) * dt.0);
} else {
i.pos = pos.0;