aboutsummaryrefslogtreecommitdiff
path: root/src/geometry
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry')
-rw-r--r--src/geometry/broad_phase.rs2
-rw-r--r--src/geometry/mod.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/geometry/broad_phase.rs b/src/geometry/broad_phase.rs
index 836ebc8..06164a1 100644
--- a/src/geometry/broad_phase.rs
+++ b/src/geometry/broad_phase.rs
@@ -12,7 +12,7 @@ pub type BroadPhaseProxyIndex = u32;
/// two objects don’t actually touch, but it is incorrect to remove a pair between two objects
/// that are still touching. In other words, it can have false-positive (though these induce
/// some computational overhead on the narrow-phase), but cannot have false-negative.
-pub trait BroadPhase {
+pub trait BroadPhase: Send + Sync + 'static {
/// Updates the broad-phase.
///
/// The results must be output through the `events` struct. The broad-phase algorithm is only
diff --git a/src/geometry/mod.rs b/src/geometry/mod.rs
index be2d9d5..1eaad79 100644
--- a/src/geometry/mod.rs
+++ b/src/geometry/mod.rs
@@ -51,8 +51,8 @@ pub type Ray = parry::query::Ray;
pub type RayIntersection = parry::query::RayIntersection;
/// The projection of a point on a collider.
pub type PointProjection = parry::query::PointProjection;
-/// The time of impact between two shapes.
-pub type TOI = parry::query::TOI;
+/// The result of a shape-cast between two shapes.
+pub type ShapeCastHit = parry::query::ShapeCastHit;
/// The default broad-phase implementation recommended for general-purpose usage.
pub type DefaultBroadPhase = BroadPhaseMultiSap;