Fix many warnings.

This commit is contained in:
Crozet Sébastien
2020-10-20 16:22:53 +02:00
parent 6495847095
commit 949e3f5384
28 changed files with 87 additions and 84 deletions

View File

@@ -1,7 +1,7 @@
use crate::dynamics::MassProperties;
use crate::math::Point;
#[cfg(feature = "dim3")]
use crate::geometry::Capsule;
use crate::math::{Point, PrincipalAngularInertia, Rotation, Vector};
use crate::math::Rotation;
impl MassProperties {
pub(crate) fn from_capsule(density: f32, half_height: f32, radius: f32) -> Self {

View File

@@ -1,7 +1,10 @@
use crate::dynamics::MassProperties;
use crate::math::{PrincipalAngularInertia, Vector};
#[cfg(feature = "dim3")]
use crate::geometry::Capsule;
use crate::math::{Point, PrincipalAngularInertia, Rotation, Vector};
use {
crate::geometry::Capsule,
crate::math::{Point, Rotation},
};
impl MassProperties {
pub(crate) fn cylinder_y_volume_unit_inertia(

View File

@@ -1,3 +1,5 @@
#![allow(dead_code)] // TODO: remove this
use crate::dynamics::MassProperties;
use crate::math::Point;