Bevy frame-dependent rendering #11809
-
I have a use case where instead of using time deltas to calculate transforms smoothly across frames, I want to instead be able to render my program determinstically given some frame number. So then I can have some resource But I also have animations, and as far as I can tell there doesn't seem to be a well-fitting API or approach to having them be determinstic. Perhaps I can have animations paused always, then do something like let anim_seek = (my_frame_count * anim_speed) % clip_duration; // since seek API must be in clip duration range but maybe someone has any advice of what to do/what to expect? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
you can use the That way you don't have to have special code for test! |
Beta Was this translation helpful? Give feedback.
you can use the
Time
resource everywhere, and add the resourceTimeUpdateStrategy::ManualDuration
.That way you don't have to have special code for test!