aboutsummaryrefslogtreecommitdiff
path: root/src/geometry
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry')
-rw-r--r--src/geometry/contact_pair.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/geometry/contact_pair.rs b/src/geometry/contact_pair.rs
index 37f157e..3bef40d 100644
--- a/src/geometry/contact_pair.rs
+++ b/src/geometry/contact_pair.rs
@@ -347,8 +347,11 @@ impl ContactManifoldData {
}
}
+/// Additional methods for the contact manifold.
pub trait ContactManifoldExt {
+ /// Computes the sum of all the impulses applied by contacts from this contact manifold.
fn total_impulse(&self) -> Real;
+ /// Computes the maximum impulse applied by contacts from this contact manifold.
fn max_impulse(&self) -> Real;
}