From 6005485789f358bbb61a7a859142584ab278665f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Sep 2024 16:09:37 -0700 Subject: [PATCH] fix face_nd --- 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 9c50c1a..16de46b 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -500,7 +500,7 @@ impl MeshQuery for Transforme fn face_nd(&self,face_id:SubmeshFaceId)->(Self::Normal,Self::Offset){ let (n,d)=self.view.face_nd(face_id); let transformed_n=self.transform.normal*n; - let transformed_d=d.fix_4()+transformed_n.dot(self.transform.vertex.translation); + let transformed_d=d*self.transform.det+transformed_n.dot(self.transform.vertex.translation); (transformed_n,transformed_d) } fn vert(&self,vert_id:SubmeshVertId)->Planar64Vec3{