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