From fef84169830186bcde602140541c8e57a7cccc7e Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Mon, 30 May 2022 19:14:05 +0200 Subject: Move the cfm factor to the velocity constraints instead of the elements. --- src/pipeline/debug_render_pipeline/debug_render_pipeline.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/pipeline/debug_render_pipeline') diff --git a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs index 017d26f..bcd19e8 100644 --- a/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs +++ b/src/pipeline/debug_render_pipeline/debug_render_pipeline.rs @@ -2,12 +2,10 @@ use super::{outlines, DebugRenderBackend}; use crate::dynamics::{ GenericJoint, ImpulseJointSet, MultibodyJointSet, RigidBodySet, RigidBodyType, }; -use crate::geometry::{ - Ball, ColliderSet, Cuboid, NarrowPhase, OctantPattern, Shape, TypedShape, VoxelType, AABB, -}; +use crate::geometry::{Ball, ColliderSet, Cuboid, NarrowPhase, Shape, TypedShape}; #[cfg(feature = "dim3")] use crate::geometry::{Cone, Cylinder}; -use crate::math::{Isometry, Point, Real, Translation, Vector, DIM}; +use crate::math::{Isometry, Point, Real, Vector, DIM}; use crate::pipeline::debug_render_pipeline::debug_render_backend::DebugRenderObject; use crate::pipeline::debug_render_pipeline::DebugRenderStyle; use crate::utils::WBasis; @@ -87,6 +85,7 @@ impl DebugRenderPipeline { self.render_contacts(backend, colliders, narrow_phase); } + /// Render contact. pub fn render_contacts( &mut self, backend: &mut impl DebugRenderBackend, -- cgit