From 462950d526dc46f8e66fdebc045002ca74bfbc50 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 16 Sep 2024 15:03:52 -0700 Subject: [PATCH] ignore precision --- src/physics.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/physics.rs b/src/physics.rs index b833bc2..18d2456 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1292,7 +1292,8 @@ impl PhysicsContext{ fn contact_normal(models:&PhysicsModels,hitbox_mesh:&HitboxMesh,contact:&ContactCollision)->Planar64Vec3{ let model_mesh=models.contact_mesh(contact); let minkowski=model_physics::MinkowskiMesh::minkowski_sum(model_mesh,hitbox_mesh.transformed_mesh()); - minkowski.face_nd(contact.face_id).0 + // TODO: normalize to i64::MAX>>1 + minkowski.face_nd(contact.face_id).0.fix_1() } fn recalculate_touching(