mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Fix timer-quantization jitters
This commit is contained in:
@@ -97,11 +97,9 @@ pub fn animate_bvh(
|
||||
|
||||
if anim.timer.just_finished() {
|
||||
anim.frame = (anim.frame + 1) % bvh_len;
|
||||
anim.timer.reset();
|
||||
0.
|
||||
} else {
|
||||
anim.timer.percent()
|
||||
}
|
||||
|
||||
anim.timer.percent()
|
||||
} else {
|
||||
0.
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user