Beispiel #1
0
        private void InitEndRotation()
        {
            EndRotation = TweenHelpers.GetTargetRotation(toOptions, transform, toTransform, toRotation.Value);

            // also store a mid point rotation to allow slerping past 180 degrees.
            // this doesn't handle entering angles past 360

            midRotation = TweenHelpers.GetTargetRotation(toOptions, transform, toTransform, toRotation.Value / 2);
        }
Beispiel #2
0
 private void InitStartRotation()
 {
     StartRotation = TweenHelpers.GetTargetRotation(fromOptions, transform, fromTransform, fromRotation.Value);
 }