Bezier interpolation

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 84a594e670
commit 8f9e657d14
6 changed files with 46 additions and 16 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ namespace vb01{
float ratio = (float)(max(0, currentFrame - pastFrame)) / (nextFrame - pastFrame);
Keyframe::Interpolation interp = pastKeyframe.interpolation;
float value = KeyframeChannel::interpolate(pastKeyframe.value, nextKeyframe.value, interp, ratio);
float value = KeyframeChannel::interpolate(pastKeyframe, nextKeyframe, ratio);
animatable->animate(value, keyframeChannel);
}
}