Function heron::rapier_plugin::rapier2d::parry::query::contact [−][src]
pub fn contact(
pos1: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
g1: &(dyn Shape + 'static),
pos2: &Isometry<f32, Unit<Complex<f32>>, 2_usize>,
g2: &(dyn Shape + 'static),
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.