Fix crash when deleting a collider.

This commit is contained in:
Crozet Sébastien
2020-10-06 10:02:21 +02:00
parent 5d95368bce
commit 721db2d49e
2 changed files with 6 additions and 6 deletions

View File

@@ -71,10 +71,10 @@ fn do_generate_contacts(
} else { } else {
manifold.subshape_index_pair.1 manifold.subshape_index_pair.1
}; };
println!( // println!(
"Restoring for {} [chosen with {:?}]", // "Restoring for {} [chosen with {:?}]",
subshape_id, manifold.subshape_index_pair // subshape_id, manifold.subshape_index_pair
); // );
// Use dummy shapes for the dispatch. // Use dummy shapes for the dispatch.
#[cfg(feature = "dim2")] #[cfg(feature = "dim2")]

View File

@@ -68,8 +68,8 @@ impl PhysicsPipeline {
bodies: &mut RigidBodySet, bodies: &mut RigidBodySet,
colliders: &mut ColliderSet, colliders: &mut ColliderSet,
) { ) {
// broad_phase.maintain(colliders); broad_phase.maintain(colliders);
// narrow_phase.maintain(colliders, bodies); narrow_phase.maintain(colliders, bodies);
} }
/// Executes one timestep of the physics simulation. /// Executes one timestep of the physics simulation.