enable rapier debug rendering
This commit is contained in:
parent
943a55dca7
commit
b51241b1fc
2 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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::<NoUserData>::pixels_per_meter(METER))
|
||||
.add_plugins(RapierDebugRenderPlugin::default())
|
||||
.add_systems(Startup, setup_camera)
|
||||
.add_plugins(game_plugin)
|
||||
.init_state::<AppState>()
|
||||
|
|
Loading…
Add table
Reference in a new issue