Function parry2d_f64::query::closest_points::closest_points
source · pub fn closest_points(
pos1: &Isometry<Real>,
g1: &dyn Shape,
pos2: &Isometry<Real>,
g2: &dyn Shape,
max_dist: Real
) -> 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.