Skip to content

Commit

Permalink
fix: testbed: keyD removes only dynamic bodies as intended (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Jun 7, 2024
1 parent 79e9de8 commit d687fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_testbed/testbed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ impl<'a, 'b, 'c, 'd, 'e, 'f> Testbed<'a, 'b, 'c, 'd, 'e, 'f> {
.physics
.bodies
.iter()
.filter(|e| !e.1.is_fixed())
.filter(|e| e.1.is_dynamic())
.map(|e| e.0)
.collect();
let num_to_delete = (dynamic_bodies.len() / 10).max(0);
Expand Down

0 comments on commit d687fe9

Please sign in to comment.