Revert "det unused"

This reverts commit 6b897620e9.
This commit is contained in:
Quaternions 2024-09-26 16:07:46 -07:00
parent 8a1e713170
commit 2fc1fcfa80

View File

@ -452,11 +452,13 @@ impl MeshQuery<SubmeshFaceId,SubmeshDirectedEdgeId,SubmeshVertId> for PhysicsMes
pub struct PhysicsMeshTransform{ pub struct PhysicsMeshTransform{
pub vertex:integer::Planar64Affine3, pub vertex:integer::Planar64Affine3,
pub normal:integer::mat3::Matrix3<Fixed<2,64>>, pub normal:integer::mat3::Matrix3<Fixed<2,64>>,
pub det:Fixed<3,96>,
} }
impl PhysicsMeshTransform{ impl PhysicsMeshTransform{
pub fn new(transform:integer::Planar64Affine3)->Self{ pub fn new(transform:integer::Planar64Affine3)->Self{
Self{ Self{
normal:transform.matrix3.adjugate().transpose(), normal:transform.matrix3.adjugate().transpose(),
det:transform.matrix3.det(),
vertex:transform, vertex:transform,
} }
} }