Function heron::rapier_plugin::rapier::parry::query::contact[][src]

pub fn contact(
    pos1: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
    g1: &(dyn Shape + 'static),
    pos2: &Isometry<f32, Unit<Quaternion<f32>>, 3_usize>,
    g2: &(dyn Shape + 'static),
    prediction: f32
) -> Result<Option<Contact>, Unsupported>

Computes one pair of contact points point between two shapes.

Returns None if the objects are separated by a distance greater than prediction. The result is given in world-space.