Created
July 4, 2017 22:20
-
-
Save matt123miller/fc117d70413e56262e9a8ecd091291fa to your computer and use it in GitHub Desktop.
This file contains 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
while (lerpCompletion < 0.99) | |
{ | |
lerpCompletion += Time.smoothDeltaTime * lerpMultiplier; | |
var curveValue = curve.Evaluate(lerpCompletion); | |
transform.localRotation = Quaternion.Slerp(_currentRotation, _desiredRotation, curveValue); | |
yield return null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment