Function heron::rapier_plugin::rapier3d::parry::query::details::time_of_impact
source · pub fn time_of_impact(
pos1: &Isometry<f32, Unit<Quaternion<f32>>, 3>,
vel1: &Matrix<f32, Const<3>, Const<1>, ArrayStorage<f32, 3, 1>>,
g1: &(dyn Shape + 'static),
pos2: &Isometry<f32, Unit<Quaternion<f32>>, 3>,
vel2: &Matrix<f32, Const<3>, Const<1>, ArrayStorage<f32, 3, 1>>,
g2: &(dyn Shape + 'static),
max_toi: f32
) -> Result<Option<TOI>, 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 penetrating.