mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
Bezier interpolation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user