diff options
| author | Sébastien Crozet <sebcrozet@dimforge.com> | 2024-05-04 17:51:15 +0200 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2024-05-05 16:17:39 +0200 |
| commit | 7565e5e4efb56bb8ba987c251b932bffc15a40c8 (patch) | |
| tree | 037acb54bcb7384811214f966bb5e5680ac17d5c /src/geometry | |
| parent | dbefeb04186226536ec7f4f248c71f056265916a (diff) | |
| download | rapier-7565e5e4efb56bb8ba987c251b932bffc15a40c8.tar.gz rapier-7565e5e4efb56bb8ba987c251b932bffc15a40c8.tar.bz2 rapier-7565e5e4efb56bb8ba987c251b932bffc15a40c8.zip | |
chore: update to the latest parry api
Diffstat (limited to 'src/geometry')
| -rw-r--r-- | src/geometry/broad_phase.rs | 2 | ||||
| -rw-r--r-- | src/geometry/mod.rs | 4 |
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; |
