wrong parity (?)
This commit is contained in:
parent
b8a0175686
commit
dcdf57b389
@ -799,7 +799,7 @@ impl TouchingState{
|
|||||||
// check if the face across the out_edge is flush to contact.face_id
|
// 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);
|
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
|
// 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);
|
let (dst_face_n,_dst_face_d)=minkowski.face_nd(dst_face);
|
||||||
// are they exactly flush
|
// are they exactly flush
|
||||||
if src_face_n.cross(dst_face_n)==vec3::ZERO_6
|
if src_face_n.cross(dst_face_n)==vec3::ZERO_6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user