From 2fc1fcfa80b6f0e8098c22c1cd8d33fa6a4dd556 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Sep 2024 16:07:46 -0700 Subject: [PATCH] Revert "det unused" This reverts commit 6b897620e9a72ce9bdc3b923c0f9cde880476e09. --- src/model_physics.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/model_physics.rs b/src/model_physics.rs index 25ed516..9c50c1a 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -452,11 +452,13 @@ impl MeshQuery for PhysicsMes pub struct PhysicsMeshTransform{ pub vertex:integer::Planar64Affine3, pub normal:integer::mat3::Matrix3>, + pub det:Fixed<3,96>, } impl PhysicsMeshTransform{ pub fn new(transform:integer::Planar64Affine3)->Self{ Self{ normal:transform.matrix3.adjugate().transpose(), + det:transform.matrix3.det(), vertex:transform, } }