Function heron::rapier_plugin::rapier::ncollide::query::time_of_impact [−][src]
pub fn time_of_impact<N>(
dispatcher: &dyn TOIDispatcher<N>,
m1: &Isometry<N, U3, Unit<Quaternion<N>>>,
vel1: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>,
g1: &(dyn Shape<N> + 'static),
m2: &Isometry<N, U3, Unit<Quaternion<N>>>,
vel2: &Matrix<N, U3, U1, <DefaultAllocator as Allocator<N, U3, U1>>::Buffer>,
g2: &(dyn Shape<N> + 'static),
max_toi: N,
target_distance: N
) -> Result<Option<TOI<N>>, Unsupported> where
N: RealField,
Computes the smallest time at with 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.