From b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Fri, 1 Jul 2022 11:57:24 +0200 Subject: Warning fixes --- src/geometry/contact_pair.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/geometry') 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; } -- cgit