Upgrade to bevy 0.16.1

master
hheik 2025-07-24 13:04:56 +03:00
parent 9e8912506e
commit 4e8c1eda06
4 changed files with 925 additions and 1283 deletions

2189
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,12 +6,11 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = "0.16.0"
bevy-inspector-egui = "0.31.0"
bevy_egui = "0.34.1"
bevy = "0.16.1"
bevy-inspector-egui = "0.32.0"
bevy_egui = "0.35.1"
bevy_mod_debugdump = "0.13.0"
bevy_prototype_lyon = "0.13.0"
# bevy_rapier2d = "0.29.0"
num-traits = "0.2.19"
# Enable a small amount of optimization in debug mode

View File

@ -11,13 +11,9 @@ impl Plugin for DebugPlugin {
app.insert_resource(DebugMode::on())
.add_plugins((
// WorldInspector requires EguiPlugin plugin to be added before it
bevy_egui::EguiPlugin {
enable_multipass_for_primary_context: true,
},
// // WorldInspector requires EguiPlugin plugin to be added before it
bevy_egui::EguiPlugin::default(),
bevy_inspector_egui::quick::WorldInspectorPlugin::new().run_if(is_debug_enabled),
// TODO: uncomment when rapier is updated for bevy 0.16
// bevy_rapier2d::prelude::RapierDebugRenderPlugin::default(),
))
.add_systems(Update, debug_toggle);
}

View File

@ -1,7 +1,5 @@
use crate::{debug, game_setup, util};
use bevy::prelude::*;
// TODO: uncomment when rapier is updated for bevy 0.16
// use bevy_rapier2d::prelude::*;
mod prefab;
mod systems;
@ -10,8 +8,6 @@ pub fn init(app: &mut App) {
let app = app.add_plugins((
game_setup::GameSetupPlugin,
util::UtilPlugin,
// TODO: uncomment when rapier is updated for bevy 0.16
// RapierPhysicsPlugin::<NoUserData>::default(),
debug::DebugPlugin,
));