Fix crash when deleting a collider.
This commit is contained in:
@@ -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")]
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user