From a8af471029f158a4316baa55ad8ae2f7897b9b72 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 5 Feb 2024 21:28:01 -0800 Subject: [PATCH] neither, see notes --- src/physics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index e16fb97..474708b 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -545,7 +545,7 @@ impl From for PhysicsModelId{ pub struct PhysicsModel{ //A model is a thing that has a hitbox. can be represented by a list of TreyMesh-es //in this iteration, all it needs is extents. - convex_mesh_id:ConvexMeshId, + mesh_id:PhysicsMeshId, //put these up on the Model (data normalization) attr_id:PhysicsAttributesId, transform:integer::Planar64Affine3, @@ -554,9 +554,9 @@ pub struct PhysicsModel{ } impl PhysicsModel{ - pub fn new(convex_mesh_id:ConvexMeshId,attr_id:PhysicsAttributesId,transform:integer::Planar64Affine3)->Self{ + pub fn new(mesh_id:PhysicsMeshId,attr_id:PhysicsAttributesId,transform:integer::Planar64Affine3)->Self{ Self{ - convex_mesh_id, + mesh_id, attr_id, transform, normal_transform:transform.matrix3.inverse_times_det().transpose(),