From 0ea4c0015178386945b91523b7fa9fd181370f7a Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 17 Nov 2024 01:44:53 +0100 Subject: [PATCH] cargo fmt --- src/camera.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/camera.rs b/src/camera.rs index 0c2f49f..13608df 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -487,11 +487,12 @@ pub fn apply_input_to_player( pitch_yaw_rot[1] -= mouse_delta.x / win_res_x; } } - pitch_yaw_rot *= 2.0 * if settings.is_zooming { - settings.zoom_sensitivity_factor - } else { - 1.0 - }; + pitch_yaw_rot *= 2.0 + * if settings.is_zooming { + settings.zoom_sensitivity_factor + } else { + 1.0 + }; // Apply rotation to player if pitch_yaw_rot != Vec3::ZERO {