aboutsummaryrefslogtreecommitdiff
path: root/src_testbed
diff options
context:
space:
mode:
Diffstat (limited to 'src_testbed')
-rw-r--r--src_testbed/debug_render.rs11
-rw-r--r--src_testbed/lines/mod.rs2
-rw-r--r--src_testbed/testbed.rs3
3 files changed, 4 insertions, 12 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(
diff --git a/src_testbed/lines/mod.rs b/src_testbed/lines/mod.rs
index c80c5df..c94ae0b 100644
--- a/src_testbed/lines/mod.rs
+++ b/src_testbed/lines/mod.rs
@@ -1,3 +1,5 @@
+#![allow(warnings)]
+
use bevy::{
asset::{Assets, HandleUntyped},
pbr::{NotShadowCaster, NotShadowReceiver},
diff --git a/src_testbed/testbed.rs b/src_testbed/testbed.rs
index 6996cd4..c17e5ac 100644
--- a/src_testbed/testbed.rs
+++ b/src_testbed/testbed.rs
@@ -17,7 +17,7 @@ use rapier::geometry::{ColliderHandle, ColliderSet, NarrowPhase};
#[cfg(feature = "dim3")]
use rapier::geometry::{InteractionGroups, Ray};
use rapier::math::{Real, Vector};
-use rapier::pipeline::{DebugRenderMode, PhysicsHooks};
+use rapier::pipeline::PhysicsHooks;
#[cfg(all(feature = "dim2", feature = "other-backends"))]
use crate::box2d_backend::Box2dWorld;
@@ -26,7 +26,6 @@ use crate::harness::Harness;
use crate::physx_backend::PhysxWorld;
use bevy::pbr::wireframe::WireframePlugin;
use bevy::render::camera::Camera;
-use bevy::render::render_resource::WgpuFeatures;
use bevy_egui::EguiContext;
#[cfg(feature = "dim2")]