diff --git a/src/query/nonlinear_time_of_impact/nonlinear_time_of_impact_support_map_support_map.rs b/src/query/nonlinear_time_of_impact/nonlinear_time_of_impact_support_map_support_map.rs index 2d49197b..a7c6316e 100644 --- a/src/query/nonlinear_time_of_impact/nonlinear_time_of_impact_support_map_support_map.rs +++ b/src/query/nonlinear_time_of_impact/nonlinear_time_of_impact_support_map_support_map.rs @@ -113,7 +113,7 @@ where break; } - if max_t - min_t < abs_tol { + if max_t - min_t < max_t.max(na::convert(1.)) * abs_tol { result.toi = min_t; break; }