diff --git a/src/model_physics.rs b/src/model_physics.rs index a080a4e..ebfee3a 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -273,20 +273,17 @@ pub struct TransformedMesh<'a>{ mesh:&'a PhysicsMesh, transform:&'a crate::integer::Planar64Affine3, normal_transform:&'a crate::integer::Planar64Mat3, - normal_determinant:Planar64, } impl TransformedMesh<'_>{ pub fn new<'a>( mesh:&'a PhysicsMesh, transform:&'a crate::integer::Planar64Affine3, normal_transform:&'a crate::integer::Planar64Mat3, - normal_determinant:Planar64 )->TransformedMesh<'a>{ TransformedMesh{ mesh, transform, normal_transform, - normal_determinant, } } pub fn brute_in(&self,body:&crate::physics::Body,time_limit:crate::integer::Time)->Option<(FaceId,crate::integer::Time)>{ diff --git a/src/physics.rs b/src/physics.rs index 48025ae..f66b683 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -184,7 +184,6 @@ impl PhysicsModels{ &self.meshes[self.models[model_id].mesh_id], &self.models[model_id].transform, &self.models[model_id].normal_transform, - self.models[model_id].normal_determinant, ) } fn model(&self,model_id:usize)->&PhysicsModel{ @@ -676,7 +675,6 @@ pub struct PhysicsModel{ attr_id:usize, transform:crate::integer::Planar64Affine3, normal_transform:crate::integer::Planar64Mat3, - normal_determinant:Planar64, } impl PhysicsModel{ @@ -687,7 +685,6 @@ impl PhysicsModel{ attr_id, transform, normal_transform, - normal_determinant:normal_transform.determinant(), } } }