forked from StrafesNET/strafe-client
normal_determinant is not real
This commit is contained in:
parent
ce1e9df334
commit
c321814b9b
@ -273,20 +273,17 @@ pub struct TransformedMesh<'a>{
|
|||||||
mesh:&'a PhysicsMesh,
|
mesh:&'a PhysicsMesh,
|
||||||
transform:&'a crate::integer::Planar64Affine3,
|
transform:&'a crate::integer::Planar64Affine3,
|
||||||
normal_transform:&'a crate::integer::Planar64Mat3,
|
normal_transform:&'a crate::integer::Planar64Mat3,
|
||||||
normal_determinant:Planar64,
|
|
||||||
}
|
}
|
||||||
impl TransformedMesh<'_>{
|
impl TransformedMesh<'_>{
|
||||||
pub fn new<'a>(
|
pub fn new<'a>(
|
||||||
mesh:&'a PhysicsMesh,
|
mesh:&'a PhysicsMesh,
|
||||||
transform:&'a crate::integer::Planar64Affine3,
|
transform:&'a crate::integer::Planar64Affine3,
|
||||||
normal_transform:&'a crate::integer::Planar64Mat3,
|
normal_transform:&'a crate::integer::Planar64Mat3,
|
||||||
normal_determinant:Planar64
|
|
||||||
)->TransformedMesh<'a>{
|
)->TransformedMesh<'a>{
|
||||||
TransformedMesh{
|
TransformedMesh{
|
||||||
mesh,
|
mesh,
|
||||||
transform,
|
transform,
|
||||||
normal_transform,
|
normal_transform,
|
||||||
normal_determinant,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn brute_in(&self,body:&crate::physics::Body,time_limit:crate::integer::Time)->Option<(FaceId,crate::integer::Time)>{
|
pub fn brute_in(&self,body:&crate::physics::Body,time_limit:crate::integer::Time)->Option<(FaceId,crate::integer::Time)>{
|
||||||
|
@ -184,7 +184,6 @@ impl PhysicsModels{
|
|||||||
&self.meshes[self.models[model_id].mesh_id],
|
&self.meshes[self.models[model_id].mesh_id],
|
||||||
&self.models[model_id].transform,
|
&self.models[model_id].transform,
|
||||||
&self.models[model_id].normal_transform,
|
&self.models[model_id].normal_transform,
|
||||||
self.models[model_id].normal_determinant,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
fn model(&self,model_id:usize)->&PhysicsModel{
|
fn model(&self,model_id:usize)->&PhysicsModel{
|
||||||
@ -676,7 +675,6 @@ pub struct PhysicsModel{
|
|||||||
attr_id:usize,
|
attr_id:usize,
|
||||||
transform:crate::integer::Planar64Affine3,
|
transform:crate::integer::Planar64Affine3,
|
||||||
normal_transform:crate::integer::Planar64Mat3,
|
normal_transform:crate::integer::Planar64Mat3,
|
||||||
normal_determinant:Planar64,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PhysicsModel{
|
impl PhysicsModel{
|
||||||
@ -687,7 +685,6 @@ impl PhysicsModel{
|
|||||||
attr_id,
|
attr_id,
|
||||||
transform,
|
transform,
|
||||||
normal_transform,
|
normal_transform,
|
||||||
normal_determinant:normal_transform.determinant(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user