From 308fa2d0776edab975fbf682746317cd5eeea4f0 Mon Sep 17 00:00:00 2001 From: Nuutti Kotivuori Date: Thu, 22 Jun 2023 13:49:38 +0000 Subject: [PATCH 01/16] Unify FixedTime and Time (proof-of-concept) --- crates/bevy_time/src/fixed_timestep.rs | 9 ++-- crates/bevy_time/src/time.rs | 59 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 5 deletions(-) diff --git a/crates/bevy_time/src/fixed_timestep.rs b/crates/bevy_time/src/fixed_timestep.rs index 66be2f41ef2ff..9a31e1053dc33 100644 --- a/crates/bevy_time/src/fixed_timestep.rs +++ b/crates/bevy_time/src/fixed_timestep.rs @@ -101,17 +101,16 @@ pub enum FixedUpdateError { /// Ticks the [`FixedTime`] resource then runs the [`FixedUpdate`]. pub fn run_fixed_update_schedule(world: &mut World) { - // Tick the time - let delta_time = world.resource::