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); }
private void InitEndPosition() { EndPosition = TweenHelpers.GetUiTargetPosition(toOption, transform, toTransform, toPosition.Value); }
private void InitStartPosition() { StartPosition = TweenHelpers.GetUiTargetPosition(fromOption, transform, fromTransform, fromPosition.Value); }
private void InitEndScale() { EndScale = TweenHelpers.GetTargetScale(toOptions, transform, toTransform, toScale.IsNone ? Vector3.one : toScale.Value); }
private void InitStartScale() { StartScale = TweenHelpers.GetTargetScale(fromOptions, transform, fromTransform, fromScale.IsNone ? Vector3.one : fromScale.Value); }