From f53327d87b3edf679b9e8d72896b84016d628986 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 23 Nov 2023 19:00:52 -0800 Subject: [PATCH] wrong --- src/model_physics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index 7e03903..35c1e17 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -499,8 +499,8 @@ impl MinkowskiMesh<'_>{ let face_n=self.face_nd(contact_face_id).0; for &directed_edge_id in self.face_edges(contact_face_id).iter(){ let edge_n=self.directed_edge_n(directed_edge_id); - //f x e points out - let n=-face_n.cross(edge_n); + //f x e points in + let n=face_n.cross(edge_n); let verts=self.edge_verts(directed_edge_id.as_undirected()); let d=n.dot(self.vert(verts[0])+self.vert(verts[1])); //WARNING! d outside of *2