Sorted out the animation vs. easing contradiction I believe. Now there's a separate easing_duration that's calculated from the total duration of all frames. Then a easing_position determines where in the total the animation is, which is fed to the asing functions as a ration of easing_position / easing_duration.

This commit is contained in:
Zed A. Shaw 2026-02-21 01:57:33 -05:00
parent 0c798c9e0d
commit 1baca783fc
9 changed files with 47 additions and 75 deletions

View file

@ -98,8 +98,6 @@ namespace cinematic {
}
void Camera::update() {
// REFACTOR: there's no connection between anim.commit() and anim.update()
auto [ticks, alpha] = anim.commit();
if(anim.playing) anim.update();
}