[−][src]Function ncollide2d::query::distance
pub fn distance<N: RealField>(
m1: &Isometry<N>,
g1: &dyn Shape<N>,
m2: &Isometry<N>,
g2: &dyn Shape<N>
) -> N
Computes the minimum distance separating two shapes.
Returns 0.0
if the objects are touching or penetrating.