delete comments left over in diff
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"))]
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user