From db6317eb93546267c1099d43d40c988ba0858d88 Mon Sep 17 00:00:00 2001 From: Crydsch Date: Mon, 18 Jul 2022 16:55:37 +0200 Subject: [PATCH] view bobbing --- src/rcamera.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rcamera.h b/src/rcamera.h index 6812f9d07..59709ac77 100644 --- a/src/rcamera.h +++ b/src/rcamera.h @@ -532,7 +532,8 @@ void UpdateCamera(Camera3D *camera) } } - if (IsKeyDown(KEY_W)) ViewBobbing(camera); + // Apply view bobbing when moving around (per default only active in CAMERA_FIRST_PERSON) + if (IsKeyDown(KEY_W) || IsKeyDown(KEY_A) || IsKeyDown(KEY_S) || IsKeyDown(KEY_D)) CameraViewBobbing(camera); } #endif // !CAMERA_STANDALONE