diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-07-01 11:57:24 +0200 |
|---|---|---|
| committer | Sébastien Crozet <developer@crozet.re> | 2022-07-01 12:00:32 +0200 |
| commit | b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4 (patch) | |
| tree | cedd123a345bf4f8b97357e1ae5c489c6b45fa5e /src | |
| parent | c9d8277377681a6c5162abe4e8f17a058eebcfd4 (diff) | |
| download | rapier-b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4.tar.gz rapier-b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4.tar.bz2 rapier-b9f76e2fda96fad6fb0f77dc2ef2314aca84f5a4.zip | |
Warning fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/geometry/contact_pair.rs | 3 | ||||
| -rw-r--r-- | src/pipeline/physics_pipeline.rs | 2 |
2 files changed, 4 insertions, 1 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; } diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs index ea0f239..d1c3b65 100644 --- a/src/pipeline/physics_pipeline.rs +++ b/src/pipeline/physics_pipeline.rs @@ -14,7 +14,7 @@ use crate::geometry::{ ContactManifoldIndex, NarrowPhase, TemporaryInteractionIndex, }; use crate::math::{Real, Vector}; -use crate::pipeline::{ActiveEvents, EventHandler, PhysicsHooks}; +use crate::pipeline::{EventHandler, PhysicsHooks}; use {crate::dynamics::RigidBodySet, crate::geometry::ColliderSet}; /// The physics pipeline, responsible for stepping the whole physics simulation. |
