From e87b73a2a20fee1ed333d564ba46dbf1c3ca75e2 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Tue, 6 Oct 2020 15:49:22 +0200 Subject: Fix compilation in 2D. --- src/pipeline/physics_pipeline.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/pipeline') 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. -- cgit