Some small performance improvements.

This commit is contained in:
Crozet Sébastien
2021-04-01 10:11:32 +02:00
parent 4fb898c77c
commit 0ecc302971
4 changed files with 13 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ impl CCDSolver {
* crate::utils::inv(body.max_point_velocity()))
.min(dt);
// println!("Min toi: {}, Toi: {}", min_toi, toi);
body.integrate_next_position(toi.max(min_toi), false);
body.integrate_next_position(toi.max(min_toi));
}
}
}