From bf5b1cb4ade6613065023023d2a1813e3b4d73af Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 25 Jun 2019 22:00:26 +0100 Subject: [PATCH] Calculate delta time properly, fix low fps collision issues by decreasing max dt --- voxygen/src/scene/figure.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/voxygen/src/scene/figure.rs b/voxygen/src/scene/figure.rs index fb35f50999..9409bd9658 100644 --- a/voxygen/src/scene/figure.rs +++ b/voxygen/src/scene/figure.rs @@ -757,8 +757,8 @@ impl FigureState { dt: f32, ) { // Update interpolate pos - self.pos = Lerp::lerp(self.pos, pos, (0.3f32).powf(1.0 / 60.0).powf(1.0 / dt)); - self.ori = Slerp::slerp(self.ori, ori, (0.15f32).powf(1.0 / 60.0).powf(1.0 / dt)); + self.pos = Lerp::lerp(self.pos, pos, (0.4f32).powf(60.0).powf(dt)); + self.ori = Slerp::slerp(self.ori, ori, (0.2f32).powf(60.0).powf(dt)); let mat = Mat4::::identity() * Mat4::translation_3d(self.pos)