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, } }