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(