Skip to content

Commit

Permalink
Merge pull request #9 from arturspon/feature/preserve-camera-rotation
Browse files Browse the repository at this point in the history
feat: preserve camera rotation on start
  • Loading branch information
Nickk888SAMP committed Jul 7, 2024
2 parents 48e67db + 750a9ae commit f6bab25
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ private void Start()
_virtualCameraGameObject.transform.eulerAngles = new Vector3(_currentCameraTilt, _virtualCameraGameObject.transform.eulerAngles.y, 0);
_framingTransposer = VirtualCamera.GetCinemachineComponent<CinemachineFramingTransposer>();
_currentCameraZoom = _framingTransposer.m_CameraDistance;
_targetCameraRotate = _virtualCameraGameObject.transform.eulerAngles.y;

_inputProvider = GetComponent<IRTSCInputProvider>();
if (_inputProvider is null)
Expand Down

0 comments on commit f6bab25

Please sign in to comment.