From c714ff81f2be61f433d0521bc56ba44ce0e71298 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Fri, 13 Sep 2024 10:48:56 +0200 Subject: ImpulseJointSet::get_mut option to wake up connected bodies (#716) --- src/pipeline/physics_pipeline.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pipeline') diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs index 8d1fec4..ab4b119 100644 --- a/src/pipeline/physics_pipeline.rs +++ b/src/pipeline/physics_pipeline.rs @@ -428,10 +428,10 @@ impl PhysicsPipeline { self.counters.stages.user_changes.start(); for handle in impulse_joints .to_wake_up - .drain(..) - .chain(multibody_joints.to_wake_up.drain(..)) + .drain() + .chain(multibody_joints.to_wake_up.drain()) { - islands.wake_up(bodies, handle, true); + islands.wake_up(bodies, handle.0, true); } // Apply modifications. -- cgit