From 682fa447413ef2f2097f27f44014dd25ca5ac8e1 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Sep 2024 16:39:09 -0700 Subject: [PATCH] fix fart --- src/model_physics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index 79aea53..6925e36 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -487,7 +487,7 @@ impl TransformedMesh<'_>{ SubmeshVertId::new( self.view.topology.verts.iter() .enumerate() - .min_by_key(|(_,vert_id)| + .max_by_key(|(_,&vert_id)| dir.dot(self.transform.vertex.transform_point3(self.view.data.verts[vert_id.get() as usize].0)) ) //assume there is more than zero vertices.