[][src]Function ncollide_geometry::query::distance

pub fn distance<P, M>(
    m1: &M,
    g1: &dyn Shape<P, M>,
    m2: &M,
    g2: &dyn Shape<P, M>
) -> P::Real where
    P: Point,
    M: Isometry<P>, 

Computes the minimum distance separating two shapes.

Returns 0.0 if the objects are touching or penetrating.