Function parry3d_f64::query::distance

source ยท
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.