dbg feature, update inspector (#12)
This commit is contained in:
21
src/main.rs
21
src/main.rs
@@ -19,7 +19,6 @@ mod sounds;
|
||||
mod squish_animation;
|
||||
mod tb_entities;
|
||||
|
||||
use avian3d::PhysicsPlugins;
|
||||
use avian3d::prelude::*;
|
||||
use bevy::audio::PlaybackMode;
|
||||
use bevy::audio::Volume;
|
||||
@@ -62,17 +61,21 @@ fn main() {
|
||||
..default()
|
||||
}));
|
||||
|
||||
// app.add_plugins(bevy::pbr::wireframe::WireframePlugin)
|
||||
// .insert_resource(bevy::pbr::wireframe::WireframeConfig {
|
||||
// global: true,
|
||||
// default_color: bevy::color::palettes::css::WHITE.into(),
|
||||
// });
|
||||
|
||||
app.add_plugins(PhysicsPlugins::default());
|
||||
app.add_plugins(CharacterControllerPlugin);
|
||||
|
||||
// app.add_plugins(PhysicsDebugPlugin::default());
|
||||
// app.add_plugins(bevy_inspector_egui::quick::WorldInspectorPlugin::default());
|
||||
#[cfg(feature = "dbg")]
|
||||
{
|
||||
use bevy_inspector_egui::quick::WorldInspectorPlugin;
|
||||
app.add_plugins(WorldInspectorPlugin::new());
|
||||
app.add_plugins(PhysicsDebugPlugin::default());
|
||||
|
||||
// app.add_plugins(bevy::pbr::wireframe::WireframePlugin)
|
||||
// .insert_resource(bevy::pbr::wireframe::WireframeConfig {
|
||||
// global: true,
|
||||
// default_color: bevy::color::palettes::css::WHITE.into(),
|
||||
// });
|
||||
}
|
||||
|
||||
app.add_plugins(alien::plugin);
|
||||
app.add_plugins(cash::plugin);
|
||||
|
||||
Reference in New Issue
Block a user