Skip to content

Commit

Permalink
Disable overlap warning for sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
hocop committed Jul 23, 2024
1 parent 5ecfd5a commit e84eb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collision/narrow_phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ impl<'w, 's, C: AnyCollider> NarrowPhase<'w, 's, C> {
#[cfg(debug_assertions)]
fn log_overlap_at_spawn(
collisions: Res<Collisions>,
added_bodies: Query<(Ref<RigidBody>, Option<&Name>, &Position)>,
added_bodies: Query<(Ref<RigidBody>, Option<&Name>, &Position), Without<Sensor>>,
) {
for contacts in collisions.get_internal().values() {
let Ok([(rb1, name1, position1), (rb2, name2, position2)]) = added_bodies.get_many([
Expand Down

0 comments on commit e84eb86

Please sign in to comment.