diff --git a/src/mass_properties/mass_properties.rs b/src/mass_properties/mass_properties.rs index 1fd833d0..351b334a 100644 --- a/src/mass_properties/mass_properties.rs +++ b/src/mass_properties/mass_properties.rs @@ -28,6 +28,7 @@ pub struct MassProperties { pub inv_mass: Real, /// The inverse of the principal angular inertia of the rigid-body. /// + /// The angular inertia is calculated relative to [`Self::local_com`]. /// Components set to zero are assumed to be infinite along the corresponding principal axis. pub inv_principal_inertia_sqrt: AngVector, #[cfg(feature = "dim3")] @@ -116,7 +117,7 @@ impl MassProperties { utils::inv(self.inv_mass) } - /// The angular inertia along the principal inertia axes of the rigid-body. + /// The angular inertia along the principal inertia axes and center of mass of the rigid-body. pub fn principal_inertia(&self) -> AngVector { #[cfg(feature = "dim2")] return utils::inv(self.inv_principal_inertia_sqrt * self.inv_principal_inertia_sqrt); diff --git a/src/partitioning/qbvh/mod.rs b/src/partitioning/qbvh/mod.rs index 87ca330a..cd72717b 100644 --- a/src/partitioning/qbvh/mod.rs +++ b/src/partitioning/qbvh/mod.rs @@ -1,8 +1,6 @@ #[cfg(feature = "std")] pub use self::{ - build::{ - BuilderProxies, CenterDataSplitter, QbvhDataGenerator, QbvhNonOverlappingDataSplitter, - }, + build::{CenterDataSplitter, QbvhDataGenerator, QbvhNonOverlappingDataSplitter}, update::QbvhUpdateWorkspace, }; diff --git a/src/shape/triangle.rs b/src/shape/triangle.rs index e0c9b6c6..79492ce4 100644 --- a/src/shape/triangle.rs +++ b/src/shape/triangle.rs @@ -559,7 +559,7 @@ impl Triangle { /// Reverse the orientation of this triangle by swapping b and c. pub fn reverse(&mut self) { - std::mem::swap(&mut self.b, &mut self.c); + mem::swap(&mut self.b, &mut self.c); } }