diff --git a/src/face_crawler.rs b/src/face_crawler.rs index 9faf38a..4fc22d9 100644 --- a/src/face_crawler.rs +++ b/src/face_crawler.rs @@ -15,7 +15,7 @@ type MinkowskiTransition=TransitionMinkowskiTransition{ //conflicting derivative means it crosses in the wrong direction. //if the transition time is equal to an already tested transition, do not replace the current best. - let mut best_transtition=MinkowskiTransition::Miss; + let mut best_transition=MinkowskiTransition::Miss; match fev{ &MinkowskiFEV::Face(face_id)=>{ //test own face collision time, ignoring roots with zero or conflicting derivative @@ -27,7 +27,7 @@ type MinkowskiTransition=Transition::zeroes2((n.dot(body.position)-d)*2,n.dot(body.velocity)*2,n.dot(body.acceleration)){ if body_time.le_ratio(dt)&&dt.lt_ratio(best_time)&&n.dot(body.extrapolated_velocity_ratio_dt(dt)).is_negative(){ best_time=dt; - best_transtition=MinkowskiTransition::Hit(face_id,dt); + best_transition=MinkowskiTransition::Hit(face_id,dt); break; } } @@ -41,7 +41,7 @@ type MinkowskiTransition=Transition::zeroes2(n.dot(body.position*2-(mesh.vert(verts[0])+mesh.vert(verts[1]))).fix_4(),n.dot(body.velocity).fix_4()*2,n.dot(body.acceleration).fix_4()){ if body_time.le_ratio(dt)&&dt.lt_ratio(best_time)&&n.dot(body.extrapolated_velocity_ratio_dt(dt)).is_negative(){ best_time=dt; - best_transtition=MinkowskiTransition::Next(MinkowskiFEV::Edge(directed_edge_id.as_undirected()),dt); + best_transition=MinkowskiTransition::Next(MinkowskiFEV::Edge(directed_edge_id.as_undirected()),dt); break; } } @@ -61,7 +61,7 @@ type MinkowskiTransition=Transition::zeroes2(n.dot(delta_pos).fix_4(),n.dot(body.velocity).fix_4()*2,n.dot(body.acceleration).fix_4()){ if body_time.le_ratio(dt)&&dt.lt_ratio(best_time)&&n.dot(body.extrapolated_velocity_ratio_dt(dt)).is_negative(){ best_time=dt; - best_transtition=MinkowskiTransition::Next(MinkowskiFEV::Face(edge_face_id),dt); + best_transition=MinkowskiTransition::Next(MinkowskiFEV::Face(edge_face_id),dt); break; } } @@ -74,7 +74,7 @@ type MinkowskiTransition=Transition{ Miss(FEV),