Function parry3d::query::time_of_impact
source · [−]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
) -> Result<Option<TOI>, Unsupported>
Expand description
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.