Merge pull request #986 from MihailRis/fix-camera-shaking

fix camera exponentially shaking
This commit is contained in:
MihailRis 2026-09-24 13:39:10 +03:00 • committed by GitHub
commit 8a9fdc8c73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,6 +104,8 @@ void CameraControl::updateMouse(PlayerInput& input, int windowHeight) {
glm::vec3 CameraControl::updateCameraShaking(
const Hitbox& hitbox, float delta
) {
delta = glm::min(delta, 0.1f);
glm::vec3 offset {};
const float k = CAM_SHAKE_DELTA_K;
const float ov = CAM_SHAKE_OFFSET_Y;