The animation tool now works and I used it to design an idle animation with the classic bounce.
This commit is contained in:
parent
80f100f223
commit
547e8ec993
3 changed files with 9 additions and 15 deletions
|
|
@ -81,7 +81,7 @@ namespace animate2 {
|
|||
bool frame_change = false;
|
||||
|
||||
if(elapsed < duration) {
|
||||
// BUG: subframe will just run crazy because I don't actually do delta time difference here vvvvv
|
||||
// BUG: subframe will just run crazy because I don't actually do delta time difference here
|
||||
sequence.subframe = std::lerp(sequence.subframe, 1.0, sequence.timer.DELTA * transform.ease_rate);
|
||||
} else {
|
||||
sequence.timer.restart();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue