diff options
| author | Crozet Sébastien <developer@crozet.re> | 2020-10-20 16:22:53 +0200 |
|---|---|---|
| committer | Crozet Sébastien <developer@crozet.re> | 2020-10-20 16:22:53 +0200 |
| commit | 949e3f5384a366c3bff5415c5db4635e811a580e (patch) | |
| tree | 910467800fc3038c279c8d166833735e043d5edc /src/geometry/collider.rs | |
| parent | 64958470950cd9832a669b1bd5d70a2aeb6a85ef (diff) | |
| download | rapier-949e3f5384a366c3bff5415c5db4635e811a580e.tar.gz rapier-949e3f5384a366c3bff5415c5db4635e811a580e.tar.bz2 rapier-949e3f5384a366c3bff5415c5db4635e811a580e.zip | |
Fix many warnings.
Diffstat (limited to 'src/geometry/collider.rs')
| -rw-r--r-- | src/geometry/collider.rs | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index 4b3b115..4785d62 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -1,18 +1,13 @@ use crate::dynamics::{MassProperties, RigidBodyHandle, RigidBodySet}; use crate::geometry::{ - Ball, Capsule, ColliderGraphIndex, Contact, Cuboid, HeightField, InteractionGraph, Polygon, - Proximity, Ray, RayIntersection, Rounded, Shape, ShapeType, Triangle, Trimesh, + Ball, Capsule, ColliderGraphIndex, Contact, Cuboid, HeightField, InteractionGraph, Proximity, + Shape, ShapeType, Triangle, Trimesh, }; #[cfg(feature = "dim3")] -use crate::geometry::{Cone, Cylinder, PolygonalFeatureMap}; +use crate::geometry::{Cone, Cylinder, PolygonalFeatureMap, Rounded}; use crate::math::{AngVector, Isometry, Point, Rotation, Vector}; -use downcast_rs::{impl_downcast, DowncastSync}; -use erased_serde::Serialize; use na::Point3; -use ncollide::bounding_volume::{HasBoundingVolume, AABB}; -use ncollide::query::RayCast; -use num::Zero; -use std::any::Any; +use ncollide::bounding_volume::AABB; use std::ops::Deref; use std::sync::Arc; @@ -21,8 +16,8 @@ use std::sync::Arc; pub struct ColliderShape(pub Arc<dyn Shape>); impl Deref for ColliderShape { - type Target = Shape; - fn deref(&self) -> &Shape { + type Target = dyn Shape; + fn deref(&self) -> &dyn Shape { &*self.0 } } @@ -257,7 +252,7 @@ impl Collider { } /// The geometric shape of this collider. - pub fn shape(&self) -> &Shape { + pub fn shape(&self) -> &dyn Shape { &*self.shape.0 } |
