aboutsummaryrefslogtreecommitdiff
path: root/src/geometry
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-07-01 11:57:24 +0200
committerSébastien Crozet <developer@crozet.re>2022-07-01 12:00:32 +0200
commitb9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4 (patch)
treecedd123a345bf4f8b97357e1ae5c489c6b45fa5e /src/geometry
parentc9d8277377681a6c5162abe4e8f17a058eebcfd4 (diff)
downloadrapier-b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4.tar.gz
rapier-b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4.tar.bz2
rapier-b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4.zip
Warning fixes
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;
}