neither, see notes

This commit is contained in:
Quaternions 2024-02-05 21:28:01 -08:00
parent 07c11f523a
commit a8af471029

View File

@ -545,7 +545,7 @@ impl From<ModelId> for PhysicsModelId{
pub struct PhysicsModel{ pub struct PhysicsModel{
//A model is a thing that has a hitbox. can be represented by a list of TreyMesh-es //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. //in this iteration, all it needs is extents.
convex_mesh_id:ConvexMeshId, mesh_id:PhysicsMeshId,
//put these up on the Model (data normalization) //put these up on the Model (data normalization)
attr_id:PhysicsAttributesId, attr_id:PhysicsAttributesId,
transform:integer::Planar64Affine3, transform:integer::Planar64Affine3,
@ -554,9 +554,9 @@ pub struct PhysicsModel{
} }
impl 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{ Self{
convex_mesh_id, mesh_id,
attr_id, attr_id,
transform, transform,
normal_transform:transform.matrix3.inverse_times_det().transpose(), normal_transform:transform.matrix3.inverse_times_det().transpose(),