Function ncollide2d::query::contact[][src]

pub fn contact<N: Real>(
    m1: &Isometry<N>,
    g1: &Shape<N>,
    m2: &Isometry<N>,
    g2: &Shape<N>,
    prediction: N
) -> Option<Contact<N>>

Computes one contact point between two shapes.

Returns None if the objects are separated by a distance greater than prediction.