[][src]Function oxygengine_physics_2d::prelude::ncollide2d::query::distance

pub fn distance<N>(
    m1: &Isometry<N, U2, Unit<Complex<N>>>,
    g1: &(dyn Shape<N> + 'static),
    m2: &Isometry<N, U2, Unit<Complex<N>>>,
    g2: &(dyn Shape<N> + 'static)
) -> N where
    N: RealField

Computes the minimum distance separating two shapes.

Returns 0.0 if the objects are touching or penetrating.