diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-11-26 17:45:14 +0100 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2022-12-11 15:20:33 +0100 |
| commit | 683baf6bf77cfb41227ea6ed4a42499d1e051cdf (patch) | |
| tree | c4469fde3ab77f192fdd2090eb0a44d6d47f016a /src_testbed | |
| parent | 46d976d97bc9334004a58a19bc9cab3ea78e9569 (diff) | |
| download | rapier-683baf6bf77cfb41227ea6ed4a42499d1e051cdf.tar.gz rapier-683baf6bf77cfb41227ea6ed4a42499d1e051cdf.tar.bz2 rapier-683baf6bf77cfb41227ea6ed4a42499d1e051cdf.zip | |
Allow the PhysicsPipeline and CollisionPipeline to update the QueryPipeline incrementally
Diffstat (limited to 'src_testbed')
| -rw-r--r-- | src_testbed/harness/mod.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src_testbed/harness/mod.rs b/src_testbed/harness/mod.rs index 2ed9745..91d4da9 100644 --- a/src_testbed/harness/mod.rs +++ b/src_testbed/harness/mod.rs @@ -215,6 +215,7 @@ impl Harness { &mut physics.impulse_joints, &mut physics.multibody_joints, &mut physics.ccd_solver, + &mut physics.query_pipeline, &*physics.hooks, event_handler, ); @@ -233,16 +234,11 @@ impl Harness { &mut self.physics.impulse_joints, &mut self.physics.multibody_joints, &mut self.physics.ccd_solver, + Some(&mut self.physics.query_pipeline), &*self.physics.hooks, &self.event_handler, ); - self.physics.query_pipeline.update( - &self.physics.islands, - &self.physics.bodies, - &self.physics.colliders, - ); - for plugin in &mut self.plugins { plugin.step(&mut self.physics, &self.state) } |
