Example #1
0
 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;
 }
Example #2
0
            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);
            }