From bccf910f6cf85da42e573e526b0dfdd49611ac47 Mon Sep 17 00:00:00 2001 From: Willow Sparks Date: Wed, 28 Jan 2026 21:15:56 +0000 Subject: [PATCH] Add w_rotation_sensitivity config connection - Add with_w_rotation_sensitivity() builder method to CameraController - Connect config.input.w_rotation_sensitivity in main.rs - Allows customizing W-axis rotation speed via config file Co-Authored-By: Claude Opus 4.5 --- crates/rust4d_input/src/camera_controller.rs | 6 ++++++ src/main.rs | 1 + 2 files changed, 7 insertions(+) diff --git a/crates/rust4d_input/src/camera_controller.rs b/crates/rust4d_input/src/camera_controller.rs index 703c11e..438621c 100644 --- a/crates/rust4d_input/src/camera_controller.rs +++ b/crates/rust4d_input/src/camera_controller.rs @@ -252,6 +252,12 @@ impl CameraController { self } + /// Builder: set W-axis rotation sensitivity + pub fn with_w_rotation_sensitivity(mut self, sensitivity: f32) -> Self { + self.w_rotation_sensitivity = sensitivity; + self + } + /// Builder: set smoothing half-life (lower = more responsive) pub fn with_smoothing_half_life(mut self, half_life: f32) -> Self { self.smoothing_half_life = half_life; diff --git a/src/main.rs b/src/main.rs index 1b3e3ca..2375d11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,6 +98,7 @@ impl App { .with_move_speed(config.input.move_speed) .with_w_move_speed(config.input.w_move_speed) .with_mouse_sensitivity(config.input.mouse_sensitivity) + .with_w_rotation_sensitivity(config.input.w_rotation_sensitivity) .with_smoothing_half_life(config.input.smoothing_half_life) .with_smoothing(config.input.smoothing_enabled); -- knotmirror 0.0.1