Skip to content

Commit

Permalink
fix annotations + uncomment ui example chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 5, 2024
1 parent 562a706 commit 536ef0e
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 @@ -224,7 +224,7 @@ fn main() {
.add_systems(
Update,
(
//ui_example_system,
ui_example_system,
change_example.run_if(resource_changed::<ExampleSelected>),
)
.chain(),
Expand Down Expand Up @@ -260,7 +260,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 @@ -284,4 +284,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 @@ -209,7 +209,7 @@ fn main() {
.add_systems(
Update,
(
//ui_example_system,
ui_example_system,
change_example.run_if(resource_changed::<ExampleSelected>),
)
.chain(),
Expand Down Expand Up @@ -245,7 +245,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 @@ -269,4 +269,3 @@ fn ui_example_system(
}
});
}
*/

0 comments on commit 536ef0e

Please sign in to comment.