Function parry3d::query::details::cast_shapes
source · pub fn cast_shapes(
pos1: &Isometry<Real>,
vel1: &Vector<Real>,
g1: &dyn Shape,
pos2: &Isometry<Real>,
vel2: &Vector<Real>,
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 target_dist
, or penetrating.