chore: update to the latest parry api

This commit is contained in:
Sébastien Crozet
2024-05-04 17:51:15 +02:00
committed by Sébastien Crozet
parent dbefeb0418
commit 7565e5e4ef
5 changed files with 14 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ pub type BroadPhaseProxyIndex = u32;
/// two objects dont 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

View File

@@ -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;