Remove some irrelevant code.

This commit is contained in:
Crozet Sébastien
2020-12-17 18:37:16 +01:00
parent 29717c2887
commit 8fe2df126a
26 changed files with 89 additions and 474 deletions

View File

@@ -10,39 +10,38 @@ pub use self::interaction_graph::{
ColliderGraphIndex, InteractionGraph, RigidBodyGraphIndex, TemporaryInteractionIndex,
};
pub use self::narrow_phase::NarrowPhase;
pub use self::polygon::Polygon;
pub use self::user_callbacks::{ContactPairFilter, PairFilterContext, ProximityPairFilter};
pub use self::pair_filter::{ContactPairFilter, PairFilterContext, ProximityPairFilter};
pub use eagl::query::{KinematicsCategory, TrackedContact};
pub use cdl::query::{KinematicsCategory, TrackedContact};
pub type Contact = eagl::query::TrackedContact<ContactData>;
pub type ContactManifold = eagl::query::ContactManifold<ContactManifoldData, ContactData>;
pub type Contact = cdl::query::TrackedContact<ContactData>;
pub type ContactManifold = cdl::query::ContactManifold<ContactManifoldData, ContactData>;
/// A segment shape.
pub type Segment = eagl::shape::Segment;
pub type Segment = cdl::shape::Segment;
/// A cuboid shape.
pub type Cuboid = eagl::shape::Cuboid;
pub type Cuboid = cdl::shape::Cuboid;
/// A triangle shape.
pub type Triangle = eagl::shape::Triangle;
pub type Triangle = cdl::shape::Triangle;
/// A ball shape.
pub type Ball = eagl::shape::Ball;
pub type Ball = cdl::shape::Ball;
/// A capsule shape.
pub type Capsule = eagl::shape::Capsule;
pub type Capsule = cdl::shape::Capsule;
/// A heightfield shape.
pub type HeightField = eagl::shape::HeightField;
pub type HeightField = cdl::shape::HeightField;
/// A cylindrical shape.
#[cfg(feature = "dim3")]
pub type Cylinder = eagl::shape::Cylinder;
pub type Cylinder = cdl::shape::Cylinder;
/// A cone shape.
#[cfg(feature = "dim3")]
pub type Cone = eagl::shape::Cone;
pub type Cone = cdl::shape::Cone;
/// An axis-aligned bounding box.
pub type AABB = eagl::bounding_volume::AABB;
pub type AABB = cdl::bounding_volume::AABB;
/// A ray that can be cast against colliders.
pub type Ray = eagl::query::Ray;
pub type Ray = cdl::query::Ray;
/// The intersection between a ray and a collider.
pub type RayIntersection = eagl::query::RayIntersection;
pub type RayIntersection = cdl::query::RayIntersection;
/// The the projection of a point on a collider.
pub type PointProjection = eagl::query::PointProjection;
pub type PointProjection = cdl::query::PointProjection;
#[derive(Copy, Clone, Hash, Debug)]
/// Events occurring when two collision objects start or stop being in contact (or penetration).
@@ -81,19 +80,16 @@ impl IntersectionEvent {
}
}
#[cfg(feature = "simd-is-enabled")]
pub(crate) use self::ball::WBall;
pub(crate) use self::broad_phase_multi_sap::{BroadPhasePairEvent, ColliderPair};
pub(crate) use self::collider_set::RemovedCollider;
#[cfg(feature = "simd-is-enabled")]
pub(crate) use self::contact_pair::WContact;
pub(crate) use self::narrow_phase::ContactManifoldIndex;
pub(crate) use eagl::partitioning::WQuadtree;
pub(crate) use cdl::partitioning::WQuadtree;
//pub(crate) use self::z_order::z_cmp_floats;
pub use self::interaction_groups::InteractionGroups;
pub use eagl::shape::*;
pub use cdl::shape::*;
mod ball;
mod broad_phase_multi_sap;
mod collider;
mod collider_set;
@@ -101,8 +97,6 @@ mod collider_set;
mod contact_pair;
mod interaction_graph;
mod narrow_phase;
mod polygon;
pub(crate) mod sat;
//mod z_order;
mod interaction_groups;
mod user_callbacks;
mod pair_filter;