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{