This commit is contained in:
Quaternions 2023-11-17 18:40:11 -08:00
parent a5437c87df
commit 13dd90d5f6

View File

@ -25,6 +25,7 @@ enum Transition<F,E:DirectedEdge,V>{
if time<=t&&t<best_time&&n.dot(body.extrapolated_velocity(t))<Planar64::ZERO{ if time<=t&&t<best_time&&n.dot(body.extrapolated_velocity(t))<Planar64::ZERO{
best_time=t; best_time=t;
best_transtition=Transition::Hit(face_id,t); best_transtition=Transition::Hit(face_id,t);
break;
} }
} }
//test each edge collision time, ignoring roots with zero or conflicting derivative //test each edge collision time, ignoring roots with zero or conflicting derivative