Skip to content

Commit

Permalink
Merge pull request #538 from rafalh/enable-collider-fix
Browse files Browse the repository at this point in the history
Fix enabling disabled collider
  • Loading branch information
sebcrozet authored Oct 29, 2023
2 parents 82416e3 + bc287a9 commit dbc540d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/geometry/collider_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ impl ColliderChanges {
/// Do these changes justify a broad-phase update?
pub fn needs_broad_phase_update(self) -> bool {
self.intersects(
ColliderChanges::PARENT | ColliderChanges::POSITION | ColliderChanges::SHAPE,
ColliderChanges::PARENT
| ColliderChanges::POSITION
| ColliderChanges::SHAPE
| ColliderChanges::ENABLED_OR_DISABLED,
)
}

Expand Down

0 comments on commit dbc540d

Please sign in to comment.