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