[−][src]Function ncollide_geometry::query::time_of_impact
pub fn time_of_impact<P, M>(
m1: &M,
vel1: &P::Vector,
g1: &dyn Shape<P, M>,
m2: &M,
vel2: &P::Vector,
g2: &dyn Shape<P, M>
) -> Option<P::Real> where
P: Point,
M: Isometry<P>,
Computes the smallest time of impact of two shapes under translational movement.
Returns 0.0
if the objects are touching or penetrating.