From 65eb229961c80c8195ded4293d7b402944ad5d6f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 29 Aug 2023 18:01:48 -0700 Subject: [PATCH] sens too low --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 68dd5ef1..c618099d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -359,7 +359,7 @@ fn main() { let dt = (time_now-time).as_secs_f64(); if dt > 1.0 / 120.0 { time = time_now; - let angles = Euler{x:Rad(mouse.y/256.),y:Rad(mouse.x/-256.),z:Rad(0.0)}; + let angles = Euler{x:Rad(mouse.y/1024.),y:Rad(mouse.x/-1024.),z:Rad(0.0)}; let orientation=Quaternion::from(angles); pos += orientation.rotate_vector(get_control_dir(controls))*fly_speed;