mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Double the speed factor of pos interp
This commit is contained in:
parent
1ed6a04a34
commit
4d3362586f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user