Skip to content

Commit

Permalink
delete comments left over in diff
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-smitherson committed Nov 3, 2023
1 parent 70922ba commit aa54622
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src_testbed/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src_testbed/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down
4 changes: 0 additions & 4 deletions src_testbed/objects/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
16 changes: 0 additions & 16 deletions src_testbed/testbed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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()
},
Expand Down

0 comments on commit aa54622

Please sign in to comment.