Type Alias avian3d::collision::contact_query::TimeOfImpactStatus

source ·
pub type TimeOfImpactStatus = ShapeCastStatus;
Expand description

The way the time of impact computation was terminated.

Aliased Type§

enum TimeOfImpactStatus {
    OutOfIterations,
    Converged,
    Failed,
    PenetratingOrWithinTargetDist,
}

Variants§

§

OutOfIterations

The shape-casting algorithm ran out of iterations before achieving convergence.

The content of the ShapeCastHit will still be a conservative approximation of the actual result so it is often fine to interpret this case as a success.

§

Converged

The shape-casting algorithm converged successfully.

§

Failed

Something went wrong during the shape-casting, likely due to numerical instabilities.

The content of the ShapeCastHit will still be a conservative approximation of the actual result so it is often fine to interpret this case as a success.

§

PenetratingOrWithinTargetDist

The two shape already overlap, or are separated by a distance smaller than [ShapeCastOptions::target_dist] at the time 0.

The witness points and normals provided by the ShapeCastHit will have unreliable values unless [ShapeCastOptions::compute_impact_geometry_on_penetration] was set to true when calling the time-of-impact function.