Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Jan 31, 2024
1 parent c6c7c1d commit 68e63e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rigidbody.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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.);
Expand Down

0 comments on commit 68e63e1

Please sign in to comment.