From 2acf7408980976fa2503e07b44f738c0b73a0dbc Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 10 Nov 2023 17:47:35 -0800 Subject: [PATCH] MinkowskiMesh::edge_faces is wrong --- src/model_physics.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/model_physics.rs b/src/model_physics.rs index 2cfa469..2bbdf93 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -625,8 +625,10 @@ impl MeshQuery for MinkowskiMesh<'_>{ } } fn edge_faces(&self,edge_id:MinkowskiEdge)->Cow<[MinkowskiFace;2]>{ + //WRONG!!!!!!!!!!!! MORE CASES!!!!!!!!!!!! match edge_id{ MinkowskiEdge::VertEdge(v0,e1)=>{ + //also need to check v0 edges to see if they overtake the face Cow::Owned(self.mesh1.edge_faces(e1).map(|face_id1|{ MinkowskiFace::VertFace(v0,face_id1) }))