Function heron::rapier_plugin::rapier::parry::query::details::closest_points [−][src]
pub fn closest_points(
pos1: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
g1: &(dyn Shape + 'static),
pos2: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
g2: &(dyn Shape + 'static),
max_dist: f32
) -> Result<ClosestPoints, Unsupported>
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.