aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-12-31 11:16:03 +0100
committerCrozet Sébastien <developer@crozet.re>2020-12-31 11:16:03 +0100
commit967145a9492175be59e8db33299b1687d69d84e2 (patch)
tree8a1beb06349119a9df0983aa42ec59625c31c395 /src/utils.rs
parent64507a68e179ebc652f177e727fac5ff1a82d931 (diff)
downloadrapier-967145a9492175be59e8db33299b1687d69d84e2.tar.gz
rapier-967145a9492175be59e8db33299b1687d69d84e2.tar.bz2
rapier-967145a9492175be59e8db33299b1687d69d84e2.zip
Perform contact sorting in the narrow-phase directly.
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 1f06ee5..932c6e2 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -1,17 +1,12 @@
//! Miscellaneous utilities.
use crate::dynamics::RigidBodyHandle;
-use na::{Matrix2, Matrix3, Matrix3x2, Point2, Point3, Scalar, SimdRealField, Vector2, Vector3};
+use na::{Matrix3, Point2, Point3, Scalar, SimdRealField, Vector2, Vector3};
use num::Zero;
use simba::simd::SimdValue;
use cdl::utils::SdpMatrix3;
-use std::ops::{Add, Mul};
-use {
- crate::math::{AngularInertia, SimdBool, SimdReal},
- na::SimdPartialOrd,
- num::One,
-};
+use {crate::math::SimdReal, na::SimdPartialOrd, num::One};
pub(crate) fn inv(val: f32) -> f32 {
if val == 0.0 {