From e2006599a8fa90090393ff4fed326ee78fd7c0b7 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Wed, 20 Jan 2021 15:15:03 +0100 Subject: Add 3D convex decomposition example. --- src/dynamics/mod.rs | 2 +- src/geometry/collider.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/dynamics/mod.rs b/src/dynamics/mod.rs index c2c36ef..d7ce0c1 100644 --- a/src/dynamics/mod.rs +++ b/src/dynamics/mod.rs @@ -9,7 +9,7 @@ pub use self::joint::{ }; pub use self::rigid_body::{ActivationStatus, BodyStatus, RigidBody, RigidBodyBuilder}; pub use self::rigid_body_set::{BodyPair, RigidBodyHandle, RigidBodySet}; -pub use cdl::shape::MassProperties; +pub use cdl::mass_properties::MassProperties; // #[cfg(not(feature = "parallel"))] pub(crate) use self::joint::JointGraphEdge; pub(crate) use self::rigid_body::RigidBodyChanges; diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index edf4dbb..8533c81 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -140,7 +140,7 @@ impl ColliderShape { } #[cfg(feature = "dim3")] - pub fn convex_mesh(points: Vec>, indices: &[usize]) -> Option { + pub fn convex_mesh(points: Vec>, indices: &[Point3]) -> Option { ConvexPolyhedron::from_convex_mesh(points, indices).map(|ch| ColliderShape(Arc::new(ch))) } @@ -174,7 +174,7 @@ impl ColliderShape { #[cfg(feature = "dim3")] pub fn round_convex_mesh( points: Vec>, - indices: &[usize], + indices: &[Point], border_radius: Real, ) -> Option { ConvexPolyhedron::from_convex_mesh(points, indices).map(|ch| { @@ -578,14 +578,14 @@ impl ColliderBuilder { } #[cfg(feature = "dim3")] - pub fn convex_mesh(points: Vec>, indices: &[usize]) -> Option { + pub fn convex_mesh(points: Vec>, indices: &[Point3]) -> Option { ColliderShape::convex_mesh(points, indices).map(|cp| Self::new(cp)) } #[cfg(feature = "dim3")] pub fn round_convex_mesh( points: Vec>, - indices: &[usize], + indices: &[Point], border_radius: Real, ) -> Option { ColliderShape::round_convex_mesh(points, indices, border_radius).map(|cp| Self::new(cp)) -- cgit