absurdly swap everything everywhere

This commit is contained in:
Quaternions 2023-11-28 18:43:40 -08:00
parent 38731c4a10
commit 26e4d8cab1
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ enum Transition<F,E:DirectedEdge,V>{
for (i,&edge_face_id) in mesh.edge_faces(edge_id).iter().enumerate(){
let face_n=mesh.face_nd(edge_face_id).0;
//edge_n gets parity from the order of edge_faces
let n=edge_n.cross(face_n)*((i as i64)*2-1);
let n=face_n.cross(edge_n)*((i as i64)*2-1);
let d=n.dot(vert_sum);
//WARNING yada yada d *2
for t in zeroes2((n.dot(body.position))*2-d,n.dot(body.velocity)*2,n.dot(body.acceleration)){

View File

@ -441,7 +441,7 @@ impl MinkowskiMesh<'_>{
for (i,&face_id) in self.edge_faces(edge_id).iter().enumerate(){
let face_n=self.face_nd(face_id).0;
//edge-face boundary nd, n facing out of the face towards the edge
let boundary_n=edge_n.cross(face_n)*(i as i64*2-1);
let boundary_n=face_n.cross(edge_n)*(i as i64*2-1);
let boundary_d=boundary_n.dot(vert_sum);
// point.dot(boundary_n) is multiplied by two because vert_sum sums two vertices.
if infinity_dir.dot(boundary_n)==Planar64::ZERO&&point.dot(boundary_n)*2<=boundary_d{