From 0717495d5717a7274439751d063a96cc3f5b5ca7 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 29 Mar 2024 02:49:16 +0100 Subject: [PATCH] fix slow braking --- src/camera.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/camera.rs b/src/camera.rs index 700c3fb..76ad052 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -81,27 +81,27 @@ fn run_camera_controller( let mut axis_input = Vec3::ZERO; if focused { if key_input.pressed(settings.key_forward) { - axis_input.z -= 1.0; + axis_input.z -= 1.2; } if key_input.pressed(settings.key_back) { - axis_input.z += 1.0; + axis_input.z += 1.2; } if key_input.pressed(settings.key_right) { - axis_input.x += 1.0; + axis_input.x += 1.2; } if key_input.pressed(settings.key_left) { - axis_input.x -= 1.0; + axis_input.x -= 1.2; } if key_input.pressed(settings.key_up) { - axis_input.y += 1.0; + axis_input.y += 1.2; } if key_input.pressed(settings.key_down) { - axis_input.y -= 1.0; + axis_input.y -= 1.2; } if key_input.pressed(settings.key_stop) { let stop_direction = -actor.v.normalize(); if stop_direction.length_squared() > 0.3 { - axis_input += 0.8 * (transform.rotation.inverse() * stop_direction); + axis_input += 1.0 * (transform.rotation.inverse() * stop_direction); } } }