Function ncollide2d::query::time_of_impact [] [src]

pub fn time_of_impact<N: Real>(
    m1: &Isometry<N>,
    vel1: &Vector<N>,
    g1: &Shape<N>,
    m2: &Isometry<N>,
    vel2: &Vector<N>,
    g2: &Shape<N>
) -> Option<N>

Computes the smallest time of impact of two shapes under translational movement.

Returns 0.0 if the objects are touching or penetrating.