Skip to content

Commit

Permalink
use fixed update instead for simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyas-taouaou committed Nov 17, 2024
1 parent f0c6803 commit 76c89b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ fn main() {
.add_plugins(DefaultPlugins)
.add_plugins(EguiPlugin)
.add_systems(Startup, setup)
.add_systems(Update, (ui, tick))
.add_systems(Update, ui)
.add_systems(FixedUpdate, tick)
.run();
}

Expand Down

0 comments on commit 76c89b5

Please sign in to comment.