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 +++ src/pipeline/physics_pipeline.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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. -- cgit