Skip to content

Commit

Permalink
Fix overlap warnings triggering for non-dynamic collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Feb 12, 2024
1 parent adb3a19 commit ba15411
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/solver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ fn penetration_constraints(
}
}

if contacts.during_current_substep && body1.rb.is_added() || body2.rb.is_added() {
if contacts.during_current_substep
&& (body1.rb.is_added() || body2.rb.is_added())
&& body1.rb.is_dynamic()
&& body2.rb.is_dynamic()
{
// if the RigidBody entity has a name, use that for debug.
let debug_id1 = match name1 {
Some(n) => format!("{:?} ({n})", body1.entity),
Expand Down

0 comments on commit ba15411

Please sign in to comment.