diff options
| author | Thierry Berger <contact@thierryberger.com> | 2024-09-13 10:48:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-13 10:48:56 +0200 |
| commit | c714ff81f2be61f433d0521bc56ba44ce0e71298 (patch) | |
| tree | b331203cee1c4291bcb74222c5b6ee792eb97536 /src/pipeline | |
| parent | 04058a111dcb99393e52158823c0f7d6a87407fb (diff) | |
| download | rapier-c714ff81f2be61f433d0521bc56ba44ce0e71298.tar.gz rapier-c714ff81f2be61f433d0521bc56ba44ce0e71298.tar.bz2 rapier-c714ff81f2be61f433d0521bc56ba44ce0e71298.zip | |
ImpulseJointSet::get_mut option to wake up connected bodies (#716)
Diffstat (limited to 'src/pipeline')
| -rw-r--r-- | src/pipeline/physics_pipeline.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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. |
