aboutsummaryrefslogtreecommitdiff
path: root/examples3d/fountain3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples3d/fountain3.rs')
-rw-r--r--examples3d/fountain3.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples3d/fountain3.rs b/examples3d/fountain3.rs
index 6c80562..08e1dfe 100644
--- a/examples3d/fountain3.rs
+++ b/examples3d/fountain3.rs
@@ -61,9 +61,12 @@ pub fn init_world(testbed: &mut Testbed) {
let num_to_remove = to_remove.len() - MAX_NUMBER_OF_BODIES;
for (handle, _) in &to_remove[..num_to_remove] {
- physics
- .bodies
- .remove(*handle, &mut physics.colliders, &mut physics.joints);
+ physics.bodies.remove(
+ *handle,
+ &mut physics.islands,
+ &mut physics.colliders,
+ &mut physics.joints,
+ );
if let (Some(graphics), Some(window)) = (&mut graphics, &mut window) {
graphics.remove_body_nodes(window, *handle);