parry3d::query::contact

Function contact

source
pub fn contact(
    pos1: &Isometry<f32>,
    g1: &dyn Shape,
    pos2: &Isometry<f32>,
    g2: &dyn Shape,
    prediction: f32,
) -> Result<Option<Contact>, Unsupported>
Expand description

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.