Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
remove debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniaczQ committed Aug 29, 2022
1 parent 982d624 commit 4d80ce4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ fn main() {
default_sampler: ImageSampler::nearest_descriptor(),
})
.add_plugins(DefaultPlugins)
.add_plugin(EditorPlugin)
//.add_plugin(EditorPlugin)
.add_plugin(RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(100.0))
.add_plugin(RapierDebugRenderPlugin::default())
//.add_plugin(RapierDebugRenderPlugin::default())
.add_plugin(ChunkPlugin)
.add_plugin(PlayerPlugin)
.add_plugin(PackagePlugin)
.add_plugin(ToolPlugin)
.add_system(toggle_debug_render)
//.add_system(toggle_debug_render)
//.add_startup_system(debug_init)
.add_startup_system(init)
.run();
}
Expand All @@ -48,7 +49,10 @@ fn toggle_debug_render(
}
}

fn init(mut render: ResMut<DebugRenderContext>, mut config: ResMut<RapierConfiguration>) {
fn debug_init(mut render: ResMut<DebugRenderContext>) {
render.enabled = false;
}

fn init(mut config: ResMut<RapierConfiguration>) {
config.gravity *= 5.;
}

0 comments on commit 4d80ce4

Please sign in to comment.