From 82da9bf40f3c523c91cff26e757d301a882e32f5 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 1 Sep 2023 20:28:37 -0700 Subject: [PATCH] why not be accurate --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 87c014d..1a904c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -513,8 +513,8 @@ impl strafe_client::framework::Example for Skybox { } fn move_mouse(&mut self, delta: (f64,f64)) { - self.camera.pitch+=(delta.1/-512.) as f32; - self.camera.yaw+=(delta.0/-512.) as f32; + self.camera.pitch=(self.camera.pitch as f64+delta.1/-512.) as f32; + self.camera.yaw=(self.camera.yaw as f64+delta.0/-512.) as f32; } fn resize(