sens too low

This commit is contained in:
Quaternions 2023-08-29 18:01:48 -07:00
parent cbe9c4a212
commit 65eb229961

View File

@ -359,7 +359,7 @@ fn main() {
let dt = (time_now-time).as_secs_f64(); let dt = (time_now-time).as_secs_f64();
if dt > 1.0 / 120.0 { if dt > 1.0 / 120.0 {
time = time_now; 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); let orientation=Quaternion::from(angles);
pos += orientation.rotate_vector(get_control_dir(controls))*fly_speed; pos += orientation.rotate_vector(get_control_dir(controls))*fly_speed;