Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@matt123miller
Created July 4, 2017 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt123miller/fc117d70413e56262e9a8ecd091291fa to your computer and use it in GitHub Desktop.
Save matt123miller/fc117d70413e56262e9a8ecd091291fa to your computer and use it in GitHub Desktop.
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