Fix compilation in 2D.

This commit is contained in:
Crozet Sébastien
2020-10-06 15:49:22 +02:00
parent c5a8e03df7
commit e87b73a2a2
8 changed files with 32 additions and 34 deletions

View File

@@ -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.