From 28ce99b5398326260c35f5af8b63002a2f0044b7 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 12 Sep 2025 21:44:56 +0200 Subject: [PATCH] Update core_3d_camera_fps.c --- examples/core/core_3d_camera_fps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/core/core_3d_camera_fps.c b/examples/core/core_3d_camera_fps.c index 0b1a5bdc5..c3c779431 100644 --- a/examples/core/core_3d_camera_fps.c +++ b/examples/core/core_3d_camera_fps.c @@ -261,8 +261,7 @@ static void UpdateCameraFPS(Camera *camera) Vector3 right = Vector3Normalize(Vector3CrossProduct(yaw, up)); // Rotate view vector around right axis - float pitchAngle = -lookRotation.y - - lean.y; + float pitchAngle = -lookRotation.y - lean.y; pitchAngle = Clamp(pitchAngle, -PI/2 + 0.0001f, PI/2 - 0.0001f); // Clamp angle so it doesn't go past straight up or straight down Vector3 pitch = Vector3RotateByAxisAngle(yaw, right, pitchAngle);