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); }
private void InitStartRotation() { StartRotation = TweenHelpers.GetTargetRotation(fromOptions, transform, fromTransform, fromRotation.Value); }