From 396580a4d57c536418ccce117c5cb6dbbb14c7ae Mon Sep 17 00:00:00 2001 From: gjwj5505 Date: Wed, 18 Dec 2024 10:44:01 +0900 Subject: [PATCH] fix: adjusted camera angle lower bound by 10 degree --- Assets/SWPPT3/Scripts/Main/Utility/CameraController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/SWPPT3/Scripts/Main/Utility/CameraController.cs b/Assets/SWPPT3/Scripts/Main/Utility/CameraController.cs index 039f1a54..e8382e84 100644 --- a/Assets/SWPPT3/Scripts/Main/Utility/CameraController.cs +++ b/Assets/SWPPT3/Scripts/Main/Utility/CameraController.cs @@ -53,7 +53,7 @@ private void Update() float mouseX = _lookInput.x * _mouseSensitivity; float mouseY = _lookInput.y * _mouseSensitivity; - _currentRotation.x = Mathf.Clamp(_currentRotation.x - mouseY, -30f, 60f); + _currentRotation.x = Mathf.Clamp(_currentRotation.x - mouseY, -40f, 60f); _currentRotation.y += mouseX; Quaternion globalRotation = Quaternion.Euler(_currentRotation.x, _currentRotation.y, 0);