Created
October 16, 2019 03:46
-
-
Save Yecats/5175219abf2345074e66784b3f5349e9 to your computer and use it in GitHub Desktop.
Part 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void LateUpdate() | |
| { | |
| //constantly updates the position of the camera based on the move and rotation targets | |
| CameraRig.transform.position = Vector3.Lerp(CameraRig.transform.position, _moveTarget, Time.deltaTime * _internalMoveSpeed); | |
| CameraRig.transform.rotation = Quaternion.Slerp(CameraRig.transform.rotation, _rotationTarget, Time.deltaTime * _internalRotationSpeed); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment