Open dubrowgn opened 1 year ago
In v0.11.1, time-of-impact queries are returning inconsistent results for toi=0, depending on which shapes are involved.
toi=0
If both shapes are balls, toi=0 results in status=converged (https://github.com/dimforge/parry/blob/v0.11.1/src/query/time_of_impact/time_of_impact_ball_ball.rs#L45)
status=converged
let status = if inside && center.coords.norm_squared() < rsum * rsum { TOIStatus::Penetrating } else { TOIStatus::Converged };
If one shape is a cuboid, and the other a ball, toi=0 results in status=penetrating (https://github.com/dimforge/parry/blob/v0.11.1/src/query/time_of_impact/time_of_impact_support_map_support_map.rs#L50):
status=penetrating
status: if toi.is_zero() { TOIStatus::Penetrating } else { TOIStatus::Converged },
In v0.11.1, time-of-impact queries are returning inconsistent results for
toi=0
, depending on which shapes are involved.If both shapes are balls,
toi=0
results instatus=converged
(https://github.com/dimforge/parry/blob/v0.11.1/src/query/time_of_impact/time_of_impact_ball_ball.rs#L45)If one shape is a cuboid, and the other a ball,
toi=0
results instatus=penetrating
(https://github.com/dimforge/parry/blob/v0.11.1/src/query/time_of_impact/time_of_impact_support_map_support_map.rs#L50):