Skip to content

Commit

Permalink
Removed special timestep setting from two examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nakedible committed Jul 12, 2023
1 parent 3919e95 commit 430c89b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion examples/ecs/iter_combinations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ fn main() {
..default()
})
.insert_resource(ClearColor(Color::BLACK))
.insert_resource(Time::<Fixed>::from_hz(100.0))
.add_systems(Startup, generate_bodies)
.add_systems(FixedUpdate, (interact_bodies, integrate))
.add_systems(Update, look_at_star)
Expand Down
3 changes: 1 addition & 2 deletions examples/games/breakout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ fn main() {
.insert_resource(Scoreboard { score: 0 })
.insert_resource(ClearColor(BACKGROUND_COLOR))
.add_event::<CollisionEvent>()
// Configure how frequently our gameplay systems are run
.insert_resource(Time::<Fixed>::from_hz(60.0))
.add_systems(Startup, setup)
// Add our gameplay simulation systems to the fixed timestep schedule
// which runs at 64 Hz by default
.add_systems(
FixedUpdate,
(
Expand Down

0 comments on commit 430c89b

Please sign in to comment.