You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Demonstrate how to use the Time API to effectively pause and resume your game #10133
#8964 introduced several new APIs to pause, resume and slow down time. In the many games, this will be an effective way to pause the game! No need for run conditions or states.
However, this could use its own example under bevy_time.
Can I take this?
I'm thinking a sprite moving left to right with buttons and keybindings to pause/resume and speed up/down time should cover it and UI showing the fixed and virtual times. Does that sound good?
When first looking at this I missed this should go in bevy_time. Does the outlined example makes sense in that crate? Shouldn't that be swapped with the current ecs/time example (which just logs stuff) or replace it?
Oh, I meant to say, this should go in the time folder of the main bevy examples! Examples that are specific to the bevy_time crate will be hard to discover and not really that useful.
Activity
meepleek commentedon Oct 17, 2023
Can I take this?
I'm thinking a sprite moving left to right with buttons and keybindings to pause/resume and speed up/down time should cover it and UI showing the fixed and virtual times. Does that sound good?
alice-i-cecile commentedon Oct 17, 2023
Yes please, that sounds great!
meepleek commentedon Oct 18, 2023
When first looking at this I missed this should go in
bevy_time. Does the outlined example makes sense in that crate? Shouldn't that be swapped with the current ecs/time example (which just logs stuff) or replace it?alice-i-cecile commentedon Oct 18, 2023
Oh, I meant to say, this should go in the
timefolder of the mainbevyexamples! Examples that are specific to thebevy_timecrate will be hard to discover and not really that useful.meepleek commentedon Oct 19, 2023
I've landed on this, but I still need to properly document the example. I skipped the buttons 'cause that would add too much noise.
Example time api (#10204)
Example time api (bevyengine#10204)
Example time api (bevyengine#10204)
WayneKeenan commentedon Jun 6, 2025
Are there any recent examples, existing or planned, that demonstrate using virtual time with rapier physics?
thanks