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