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 {
manifold.subshape_index_pair.1
};
println!(
"Restoring for {} [chosen with {:?}]",
subshape_id, manifold.subshape_index_pair
);
// println!(
// "Restoring for {} [chosen with {:?}]",
// subshape_id, manifold.subshape_index_pair
// );
// Use dummy shapes for the dispatch.
#[cfg(feature = "dim2")]

View File

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