diff --git a/src/debug.rs b/src/debug.rs index 0cb5457..d556a23 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -291,7 +291,7 @@ impl Plugin for DebugPlugin { .add_plugins(RapierDebugRenderPlugin::default()) //Frame on console .add_plugins((LogDiagnosticsPlugin::default(), FrameTimeDiagnosticsPlugin)) - .init_resource::() - .init_resource::(); + .init_resource::() + .init_resource::(); } } diff --git a/src/rigidbody.rs b/src/rigidbody.rs index 5227f81..360f042 100644 --- a/src/rigidbody.rs +++ b/src/rigidbody.rs @@ -87,7 +87,7 @@ pub fn update_rigidibodies( //let mut stop_count = 0; //let mut total = 0; - + //This fills the chunks with Object atoms for (y, x) in (0..height).cartesian_product(0..width) { let pos = top_left + vec2(x as f32, y as f32).rotate(Vec2::from_angle(angle)); @@ -133,7 +133,7 @@ pub fn update_rigidibodies( } } } - + /* let stop_treshold = total as f32 * STOP_RATE; let new_gravity = ((stop_treshold - stop_count as f32) / stop_treshold).clamp(0., 1.);