diff options
| author | Crozet Sébastien <developer@crozet.re> | 2020-10-06 15:49:22 +0200 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2020-10-06 15:49:22 +0200 |
| commit | e87b73a2a20fee1ed333d564ba46dbf1c3ca75e2 (patch) | |
| tree | a4031976bb6a9f8cf81880c8ed4e0d1c72e919cb /src/pipeline | |
| parent | c5a8e03df7b3009b24e7c272fafcc49b4bc4e829 (diff) | |
| download | rapier-e87b73a2a20fee1ed333d564ba46dbf1c3ca75e2.tar.gz rapier-e87b73a2a20fee1ed333d564ba46dbf1c3ca75e2.tar.bz2 rapier-e87b73a2a20fee1ed333d564ba46dbf1c3ca75e2.zip | |
Fix compilation in 2D.
Diffstat (limited to 'src/pipeline')
| -rw-r--r-- | src/pipeline/physics_pipeline.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs index 4a39f79..462b341 100644 --- a/src/pipeline/physics_pipeline.rs +++ b/src/pipeline/physics_pipeline.rs @@ -58,18 +58,6 @@ impl PhysicsPipeline { } } - /// Remove this. - pub fn maintain( - &mut self, - broad_phase: &mut BroadPhase, - narrow_phase: &mut NarrowPhase, - bodies: &mut RigidBodySet, - colliders: &mut ColliderSet, - ) { - broad_phase.maintain(colliders); - narrow_phase.maintain(colliders, bodies); - } - /// Executes one timestep of the physics simulation. pub fn step( &mut self, @@ -82,9 +70,9 @@ impl PhysicsPipeline { joints: &mut JointSet, events: &dyn EventHandler, ) { - // println!("Step"); self.counters.step_started(); - self.maintain(broad_phase, narrow_phase, bodies, colliders); + broad_phase.maintain(colliders); + narrow_phase.maintain(colliders, bodies); bodies.maintain_active_set(); // Update kinematic bodies velocities. |
