Skip to content

Commit

Permalink
feat: preserve camera rotation on start
Browse files Browse the repository at this point in the history
Preserves the camera rotation defined on editor.
  • Loading branch information
arturspon authored Jul 6, 2024
1 parent 48e67db commit 750a9ae
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 750a9ae

Please sign in to comment.