physics: use core

This commit is contained in:
2026-03-19 21:37:03 -07:00
parent 93988affd7
commit 9b6be8bc68

View File

@@ -275,7 +275,7 @@ fn get_best_push_ray_and_conts<'a>(
fn get_first_touch<'a>(contacts:&'a [Contact],ray:&Ray,conts:&Conts)->Option<(Ratio<Fixed<2,64>,Fixed<2,64>>,&'a Contact)>{
contacts.iter()
.filter(|&contact|
!conts.iter().any(|&c|std::ptr::eq(c,contact))
!conts.iter().any(|&c|core::ptr::eq(c,contact))
&&contact.relative_dot(ray.direction).is_negative()
)
.map(|contact|(contact.solve(ray),contact))