fix: double movement speed for smoother camera control

This commit is contained in:
2025-10-02 01:09:21 +02:00
parent b1d0bbdfb6
commit 4149277dde

View File

@@ -325,7 +325,7 @@ fn main() {
// Handle keyboard input for camera movement and rotation
if let Ok(keys) = pressed_keys.lock() {
// movement speed
let speed = 2.5 * delta_time;
let speed = 5.0 * delta_time;
// camera direction vectors based on yaw & pitch
let front = glm::vec3(
cam_yaw.sin() * cam_pitch.cos(),