Skip to content

Commit

Permalink
Merge pull request #94 from 2024FALL-SWPP/camera
Browse files Browse the repository at this point in the history
fix: adjusted camera angle lower bound by 10 degree
  • Loading branch information
gjwj5505 authored Dec 18, 2024
2 parents cfefd80 + 396580a commit f365ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/SWPPT3/Scripts/Main/Utility/CameraController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f365ce0

Please sign in to comment.