pub fn closest_points(
    pos1: &Isometry<f32, Unit<Complex<f32>>, 2>,
    g1: &(dyn Shape + 'static),
    pos2: &Isometry<f32, Unit<Complex<f32>>, 2>,
    g2: &(dyn Shape + 'static),
    max_dist: f32
) -> Result<ClosestPoints, Unsupported>
Expand description

Computes the pair of closest points between two shapes.

Returns ClosestPoints::Disjoint if the objects are separated by a distance greater than max_dist. The result points in ClosestPoints::WithinMargin are expressed in world-space.