This commit is contained in:
yuni 2024-03-18 03:06:41 +01:00
parent 9edc352086
commit a7ec9ae5a1

View file

@ -15,7 +15,7 @@ impl Plugin for CameraControllerPlugin {
/// Based on Valorant's default sensitivity, not entirely sure why it is exactly 1.0 / 180.0, /// Based on Valorant's default sensitivity, not entirely sure why it is exactly 1.0 / 180.0,
/// but I'm guessing it is a misunderstanding between degrees/radians and then sticking with /// but I'm guessing it is a misunderstanding between degrees/radians and then sticking with
/// it because it felt nice. /// it because it felt nice.
pub const RADIANS_PER_DOT: f32 = 1.0 / 180.0 * 0.5; pub const RADIANS_PER_DOT: f32 = 1.0 / 180.0;
#[derive(Component)] #[derive(Component)]
pub struct CameraController { pub struct CameraController {
@ -44,7 +44,7 @@ impl Default for CameraController {
Self { Self {
enabled: true, enabled: true,
initialized: false, initialized: false,
sensitivity: 1.0, sensitivity: 0.5,
key_forward: KeyCode::KeyW, key_forward: KeyCode::KeyW,
key_back: KeyCode::KeyS, key_back: KeyCode::KeyS,
key_left: KeyCode::KeyA, key_left: KeyCode::KeyA,