Skip to content

Commit

Permalink
Only warn about 'overlapping at spawn' for dynamic bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ committed Aug 16, 2024
1 parent 4d082a7 commit 0d4ff08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/collision/narrow_phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,11 @@ fn log_overlap_at_spawn(
continue;
};

// only warn if at least one of the bodies is dynamic
if !rb1.is_dynamic() && !rb2.is_dynamic() {
continue;
}

if rb1.is_added() || rb2.is_added() {
// If the RigidBody entity has a name, use that for debug.
let debug_id1 = match name1 {
Expand Down

0 comments on commit 0d4ff08

Please sign in to comment.