From 716a5fe64189b23210ff522b4dae639303b49edb Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 18 Jan 2023 01:28:42 +0100 Subject: [PATCH] Mouse speed is no longer affected by dt --- src/game/controller.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/controller.rs b/src/game/controller.rs index c188a98..cb029a9 100644 --- a/src/game/controller.rs +++ b/src/game/controller.rs @@ -95,9 +95,9 @@ impl Controls { ] } }; - let rotation = [ - dt * self.inputs.look_h * self.sensitivity, - dt * self.inputs.look_v * self.sensitivity + let rotation = [ //Do mouse inputs need to be multiplied by dt? + self.inputs.look_h * self.sensitivity * 0.01, //* dt + self.inputs.look_v * self.sensitivity * 0.01 //* dt ]; //Only mouse related actions need to be reset self.inputs.look_h = 0.;