Skip to main content

shape_time_of_impact

Function shape_time_of_impact 

Source
pub fn shape_time_of_impact(
    shape_a: &Shape,
    shape_b: &Shape,
    sweep_a: &Sweep,
    sweep_b: &Sweep,
    max_fraction: f32,
) -> ToiOutput
Expand description

Time of impact between two shapes along sweeps. Convex vs convex uses GJK TOI; mesh/height/compound use triangle/child queries. (b3ShapeTimeOfImpact)