From 7565e5e4efb56bb8ba987c251b932bffc15a40c8 Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Sat, 4 May 2024 17:51:15 +0200 Subject: chore: update to the latest parry api --- src/geometry/broad_phase.rs | 2 +- src/geometry/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/geometry') 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; -- cgit