applyInterpolation method
void
applyInterpolation(
- ActorComponent? component,
- double time,
- KeyFrame toFrame,
- double mix,
override
Implementation
@override
void applyInterpolation(
ActorComponent? component, double time, KeyFrame toFrame, double mix) {
KeyFrameNumeric to = toFrame as KeyFrameNumeric;
double f = _interpolator.getEasedMix((time - _time) / (to._time - _time));
setValue(component, _value * (1.0 - f) + to._value * f, mix);
}