diff --git a/Cargo.toml b/Cargo.toml index 9eaeca2..3852f54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] bevy = { version = "0.14.2" } -bevy_rapier2d = "0.27.0" +bevy_rapier2d = {version = "0.27.0", features = ["debug-render-2d"]} bevy_editor_pls = "0.10" readformat = "0.1.2" diff --git a/src/main.rs b/src/main.rs index 16d7c90..fc95321 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ use game::game_plugin; mod game; -const METER: f32 = 120.; +const METER: f32 = 60.; #[derive(States, Debug, Clone, PartialEq, Eq, Hash, Default)] enum AppState { @@ -26,6 +26,7 @@ fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(RapierPhysicsPlugin::::pixels_per_meter(METER)) + .add_plugins(RapierDebugRenderPlugin::default()) .add_systems(Startup, setup_camera) .add_plugins(game_plugin) .init_state::()