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

pub fn distance<P, M>(
    m1: &M,
    g1: &Shape<P, M>,
    m2: &M,
    g2: &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.