aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/debug_render.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-04-28 17:30:35 +0200
committerSébastien Crozet <developer@crozet.re>2022-04-28 17:30:35 +0200
commit65824e74f3a949343059b3bf5ab51bc7920f416d (patch)
tree6c646bdb7c831b1ed12843e36be67dd769039615 /src_testbed/debug_render.rs
parent5063fa420392455f7926f1ba3e65612f79a0b066 (diff)
downloadrapier-65824e74f3a949343059b3bf5ab51bc7920f416d.tar.gz
rapier-65824e74f3a949343059b3bf5ab51bc7920f416d.tar.bz2
rapier-65824e74f3a949343059b3bf5ab51bc7920f416d.zip
Add comments for the debug-renderer
Diffstat (limited to 'src_testbed/debug_render.rs')
-rw-r--r--src_testbed/debug_render.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src_testbed/debug_render.rs b/src_testbed/debug_render.rs
index ff884e2..6e41496 100644
--- a/src_testbed/debug_render.rs
+++ b/src_testbed/debug_render.rs
@@ -1,11 +1,10 @@
use crate::harness::Harness;
use crate::lines::DebugLines;
use bevy::prelude::*;
-use rapier::math::{Point, Real, DIM};
+use rapier::math::{Point, Real};
use rapier::pipeline::{
DebugRenderBackend, DebugRenderMode, DebugRenderObject, DebugRenderPipeline,
};
-use std::fmt::Debug;
pub struct RapierDebugRenderPlugin {
depth_test: bool,
@@ -19,14 +18,6 @@ impl Default for RapierDebugRenderPlugin {
}
}
-impl RapierDebugRenderPlugin {
- pub fn with_depth_test(enabled: bool) -> Self {
- Self {
- depth_test: enabled,
- }
- }
-}
-
impl Plugin for RapierDebugRenderPlugin {
fn build(&self, app: &mut App) {
app.add_plugin(crate::lines::DebugLinesPlugin::with_depth_test(