diff --git a/src_testbed/graphics.rs b/src_testbed/graphics.rs index 70e27baff..847258d32 100644 --- a/src_testbed/graphics.rs +++ b/src_testbed/graphics.rs @@ -13,8 +13,6 @@ use rapier::math::{Isometry, Real, Vector}; //#[cfg(feature = "dim2")] //use crate::objects::polyline::Polyline; // use crate::objects::mesh::Mesh; -// use bevy_pbr::StandardMaterial; -// use bevy_sprite::ColorMaterial; use rand::{Rng, SeedableRng}; use rand_pcg::Pcg32; use std::collections::HashMap; diff --git a/src_testbed/lib.rs b/src_testbed/lib.rs index 3702866a5..46364cbb3 100644 --- a/src_testbed/lib.rs +++ b/src_testbed/lib.rs @@ -22,7 +22,6 @@ mod camera3d; mod debug_render; mod graphics; pub mod harness; -// mod lines; pub mod objects; pub mod physics; #[cfg(all(feature = "dim3", feature = "other-backends"))] diff --git a/src_testbed/objects/node.rs b/src_testbed/objects/node.rs index da14a8071..8ddffab65 100644 --- a/src_testbed/objects/node.rs +++ b/src_testbed/objects/node.rs @@ -7,11 +7,7 @@ use std::collections::HashMap; use bevy::render::render_resource::PrimitiveTopology; use bevy_pbr::wireframe::Wireframe; -// use bevy_pbr::PbrBundle; -// use bevy_pbr::StandardMaterial; -// use bevy_sprite::ColorMaterial; use rapier::geometry::{ColliderHandle, ColliderSet, Shape, ShapeType}; - #[cfg(feature = "dim3")] use rapier::geometry::{Cone, Cylinder}; use rapier::math::{Isometry, Real, Vector}; diff --git a/src_testbed/testbed.rs b/src_testbed/testbed.rs index 7bd40bb4a..4c8a4a6f9 100644 --- a/src_testbed/testbed.rs +++ b/src_testbed/testbed.rs @@ -406,8 +406,6 @@ impl TestbedApp { .insert_non_send_resource(self.harness) .insert_resource(self.builders) .insert_non_send_resource(self.plugins) - // .add_stage_before(CoreStage::Update, "physics", SystemStage::single_threaded()) - // .add_system_to_stage("physics", update_testbed) .add_systems(Update, update_testbed) .add_systems(Update, egui_focus); init(&mut app); @@ -1001,23 +999,9 @@ fn draw_contacts(_nf: &NarrowPhase, _colliders: &ColliderSet) { #[cfg(feature = "dim3")] fn setup_graphics_environment(mut commands: Commands) { - // const HALF_SIZE: f32 = 100.0; - commands.spawn(DirectionalLightBundle { directional_light: DirectionalLight { illuminance: 10000.0, - // Configure the projection to better fit the scene - // shadow_projection: OrthographicProjection { - // area: Rect::new( - // -HALF_SIZE, - // HALF_SIZE, - // -HALF_SIZE, - // HALF_SIZE, - // ), - // near: -10.0 * HALF_SIZE, - // far: 100.0 * HALF_SIZE, - // ..Default::default() - // }, shadows_enabled: true, ..Default::default() },