diff options
Diffstat (limited to 'src/geometry/contact_pair.rs')
| -rw-r--r-- | src/geometry/contact_pair.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/geometry/contact_pair.rs b/src/geometry/contact_pair.rs index f4e7834..f57f0fa 100644 --- a/src/geometry/contact_pair.rs +++ b/src/geometry/contact_pair.rs @@ -77,6 +77,13 @@ impl ContactPair { } } + /// Clears all the contacts of this contact pair. + pub fn clear(&mut self) { + self.manifolds.clear(); + self.has_any_active_contact = false; + self.workspace = None; + } + /// Finds the contact with the smallest signed distance. /// /// If the colliders involved in this contact pair are penetrating, then |
