[−][src]Function parry2d_f64::query::time_of_impact
pub fn time_of_impact(
pos1: &Isometry<Real>,
vel1: &Vector<Real>,
g1: &dyn Shape,
pos2: &Isometry<Real>,
vel2: &Vector<Real>,
g2: &dyn Shape,
max_toi: Real,
target_distance: Real
) -> Result<Option<TOI>, Unsupported>
Computes the smallest time when two shapes under translational movement are separated by a
distance smaller or equal to distance
.
Returns 0.0
if the objects are touching or penetrating.