private static void InitializeAnimation(ref Channel animationChannel, ref AnimationInitialValues <T> animationValue) { animationChannel.ValuePrev = animationValue.Value1; animationChannel.ValueStart = animationValue.Value1; animationChannel.ValueEnd = animationValue.Value1; animationChannel.ValueNext = animationValue.Value2; }
internal static void InitializeAnimation(ref EvaluatorData animationChannel, ref AnimationInitialValues <float> animationValue) { animationChannel.ValuePrev = animationValue.Value1; animationChannel.ValueStart = animationValue.Value1; animationChannel.ValueEnd = animationValue.Value1; animationChannel.ValueNext = animationValue.Value2; }
public void InvalidateTime() { reachedEnd = false; currentKeyFrame = keyFrames.GetEnumerator(); var animationInitialValues = new AnimationInitialValues <float>(); // Skip two elements (right before third) currentKeyFrame.MoveNext(); animationInitialValues.Value1 = currentKeyFrame.Current; currentKeyFrame.MoveNext(); animationInitialValues.Value2 = currentKeyFrame.Current; currentTime = animationInitialValues.Value1.Time; InitializeAnimation(ref data, ref animationInitialValues); }