pub fn cast_shapes(
pos1: &Isometry<f32>,
vel1: &Vector<f32>,
g1: &dyn Shape,
pos2: &Isometry<f32>,
vel2: &Vector<f32>,
g2: &dyn Shape,
options: ShapeCastOptions,
) -> Result<Option<ShapeCastHit>, Unsupported>
Expand description
Computes the smallest time when two shapes under translational movement are separated by a
distance smaller or equal to distance
.
Returns 0.0
if the objects are touching or closer than options.target_distance
,
or penetrating.