Skip to content

Commit

Permalink
uncomment egui code
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 9, 2024
1 parent 58d2bf0 commit 7fc9907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions bevy_rapier2d/examples/testbed2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod player_movement2;
mod rope_joint2;

use bevy::prelude::*;
use bevy_egui::EguiPlugin;
use bevy_egui::{egui, EguiContexts, EguiPlugin};
use bevy_inspector_egui::quick::WorldInspectorPlugin;
use bevy_rapier2d::prelude::*;

Expand Down Expand Up @@ -225,7 +225,7 @@ fn main() {
.add_systems(
Update,
(
//ui_example_system,
ui_example_system,
change_example.run_if(resource_changed::<ExampleSelected>),
)
.chain(),
Expand Down Expand Up @@ -261,7 +261,7 @@ fn change_example(
) {
next_state.set(examples_available.0[example_selected.0].state);
}
/*

fn ui_example_system(
mut contexts: EguiContexts,
mut current_example: ResMut<ExampleSelected>,
Expand All @@ -285,4 +285,3 @@ fn ui_example_system(
}
});
}
*/
7 changes: 3 additions & 4 deletions bevy_rapier3d/examples/testbed3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod ray_casting3;
mod static_trimesh3;

use bevy::prelude::*;
use bevy_egui::EguiPlugin;
use bevy_egui::{egui, EguiContexts, EguiPlugin};
use bevy_inspector_egui::quick::WorldInspectorPlugin;
use bevy_rapier3d::prelude::*;

Expand Down Expand Up @@ -210,7 +210,7 @@ fn main() {
.add_systems(
Update,
(
//ui_example_system,
ui_example_system,
change_example.run_if(resource_changed::<ExampleSelected>),
)
.chain(),
Expand Down Expand Up @@ -246,7 +246,7 @@ fn change_example(
) {
next_state.set(examples_available.0[example_selected.0].state);
}
/*

fn ui_example_system(
mut contexts: EguiContexts,
mut current_example: ResMut<ExampleSelected>,
Expand All @@ -270,4 +270,3 @@ fn ui_example_system(
}
});
}
*/

0 comments on commit 7fc9907

Please sign in to comment.