From 8dc9d5f13b74e3f24a458b8c5f6ca92ad67b68cd Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Thu, 7 Nov 2024 09:22:05 +0100 Subject: [PATCH] re-enable inspector --- Cargo.toml | 3 ++- bevy_rapier2d/Cargo.toml | 4 ++-- bevy_rapier2d/examples/testbed2.rs | 8 ++++---- bevy_rapier3d/Cargo.toml | 6 +++--- bevy_rapier3d/examples/testbed3.rs | 8 ++++---- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 684265ff..cd1b8bc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,9 +20,10 @@ codegen-units = 1 #parry3d = { path = "../parry/crates/parry3d" } #rapier2d = { path = "../rapier/crates/rapier2d" } #rapier3d = { path = "../rapier/crates/rapier3d" } - #nalgebra = { git = "https://github.com/dimforge/nalgebra", branch = "dev" } #parry2d = { git = "https://github.com/dimforge/parry", branch = "master" } #parry3d = { git = "https://github.com/dimforge/parry", branch = "master" } #rapier2d = { git = "https://github.com/dimforge/rapier", branch = "character-controller" } #rapier3d = { git = "https://github.com/dimforge/rapier", branch = "character-controller" } +bevy_egui = { git = "https://github.com/Vrixyz/bevy_egui", branch = "bevy_main" } +bevy-inspector-egui = { git = "https://github.com/Vrixyz/bevy-inspector-egui", branch = "bevy_0.15" } diff --git a/bevy_rapier2d/Cargo.toml b/bevy_rapier2d/Cargo.toml index bee19234..a41257da 100644 --- a/bevy_rapier2d/Cargo.toml +++ b/bevy_rapier2d/Cargo.toml @@ -65,8 +65,8 @@ bevy = { version = "0.15.0-rc.2", default-features = false, features = [ oorandom = "11" approx = "0.5.1" glam = { version = "0.29", features = ["approx"] } -# bevy-inspector-egui = "0.25.1" -# bevy_egui = "0.28.0" +bevy-inspector-egui = "0.28.0" +bevy_egui = "0.30.0" # bevy_mod_debugdump = "0.11" bevy_mod_debugdump = { git = "https://github.com/andriyDev/bevy_mod_debugdump.git", branch = "bevy-0.15" } diff --git a/bevy_rapier2d/examples/testbed2.rs b/bevy_rapier2d/examples/testbed2.rs index f8c4fd44..c13d290f 100644 --- a/bevy_rapier2d/examples/testbed2.rs +++ b/bevy_rapier2d/examples/testbed2.rs @@ -13,8 +13,8 @@ mod player_movement2; mod rope_joint2; use bevy::prelude::*; -// use bevy_egui::{egui, EguiContexts, EguiPlugin}; -//use bevy_inspector_egui::quick::WorldInspectorPlugin; +use bevy_egui::{egui, EguiContexts, EguiPlugin}; +use bevy_inspector_egui::quick::WorldInspectorPlugin; use bevy_rapier2d::prelude::*; #[derive(Debug, Reflect, Clone, Copy, Eq, PartialEq, Default, Hash, States)] @@ -62,10 +62,10 @@ fn main() { app.init_resource::() .add_plugins(( DefaultPlugins, - //EguiPlugin, + EguiPlugin, RapierPhysicsPlugin::::pixels_per_meter(10.0), RapierDebugRenderPlugin::default(), - //WorldInspectorPlugin::new(), + WorldInspectorPlugin::new(), )) .register_type::() .register_type::() diff --git a/bevy_rapier3d/Cargo.toml b/bevy_rapier3d/Cargo.toml index fec36575..c17f1ccf 100644 --- a/bevy_rapier3d/Cargo.toml +++ b/bevy_rapier3d/Cargo.toml @@ -58,7 +58,7 @@ log = "0.4" serde = { version = "1", features = ["derive"], optional = true } [dev-dependencies] -bevy = { version = "0.15.0-rc.2", default-features = false, features = [ +bevy = { version = "0.15.0-rc.3", default-features = false, features = [ "x11", "tonemapping_luts", "bevy_state", @@ -66,8 +66,8 @@ bevy = { version = "0.15.0-rc.2", default-features = false, features = [ ] } approx = "0.5.1" glam = { version = "0.29", features = ["approx"] } -# bevy-inspector-egui = "0.25.1" -# bevy_egui = "0.28.0" +bevy-inspector-egui = "0.28" +bevy_egui = "0.30.0" divan = "0.1" bevy_rapier_benches3d = { version = "0.1", path = "../bevy_rapier_benches3d" } diff --git a/bevy_rapier3d/examples/testbed3.rs b/bevy_rapier3d/examples/testbed3.rs index fb5c21d8..753a9d1f 100644 --- a/bevy_rapier3d/examples/testbed3.rs +++ b/bevy_rapier3d/examples/testbed3.rs @@ -12,8 +12,8 @@ mod ray_casting3; mod static_trimesh3; use bevy::prelude::*; -// use bevy_egui::{egui, EguiContexts, EguiPlugin}; -// use bevy_inspector_egui::quick::WorldInspectorPlugin; +use bevy_egui::{egui, EguiContexts, EguiPlugin}; +use bevy_inspector_egui::quick::WorldInspectorPlugin; use bevy_rapier3d::prelude::*; #[derive(Debug, Reflect, Clone, Copy, Eq, PartialEq, Default, Hash, States)] @@ -60,10 +60,10 @@ fn main() { app.init_resource::() .add_plugins(( DefaultPlugins, - //EguiPlugin, + EguiPlugin, RapierPhysicsPlugin::::default(), RapierDebugRenderPlugin::default(), - //WorldInspectorPlugin::new(), + WorldInspectorPlugin::new(), )) .register_type::() .register_type::()