pub fn distance(
pos1: &Isometry<f64>,
g1: &dyn Shape,
pos2: &Isometry<f64>,
g2: &dyn Shape,
) -> Result<f64, Unsupported>Expand description
Computes the minimum distance separating two shapes.
Returns 0.0 if the objects are touching or penetrating.