wrong parity (?)

This commit is contained in:
Quaternions 2025-03-19 13:41:07 -07:00
parent b8a0175686
commit dcdf57b389

@ -799,7 +799,7 @@ impl TouchingState{
// check if the face across the out_edge is flush to contact.face_id
let (src_face_n,_src_face_d)=minkowski.face_nd(contact.face_id);
// the face across may be left or right depending on the directed edge parity
let dst_face=minkowski.edge_faces(out_edge.as_undirected()).as_ref()[!out_edge.parity() as usize];
let dst_face=minkowski.edge_faces(out_edge.as_undirected()).as_ref()[out_edge.parity() as usize];
let (dst_face_n,_dst_face_d)=minkowski.face_nd(dst_face);
// are they exactly flush
if src_face_n.cross(dst_face_n)==vec3::ZERO_6