From 0026b92a7204231292161f5e15735527af01cc60 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 21 Feb 2024 05:13:31 -0800 Subject: [PATCH] hide hints --- src/physics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index 861f52c..43808f6 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -724,7 +724,7 @@ impl TouchingState{ //add accelerators for contact in &self.contacts{ match models.attr(contact.convex_mesh_id.model_id){ - PhysicsCollisionAttributes::Contact{contacting,general}=>{ + PhysicsCollisionAttributes::Contact{contacting:_,general}=>{ match &general.accelerator{ Some(accelerator)=>a+=accelerator.acceleration, None=>(), @@ -735,7 +735,7 @@ impl TouchingState{ } for intersect in &self.intersects{ match models.attr(intersect.convex_mesh_id.model_id){ - PhysicsCollisionAttributes::Intersect{intersecting,general}=>{ + PhysicsCollisionAttributes::Intersect{intersecting:_,general}=>{ match &general.accelerator{ Some(accelerator)=>a+=accelerator.acceleration, None=>(), @@ -1435,7 +1435,7 @@ fn run_teleport_behaviour(wormhole:&Option,models match &walk_state.target{ //you are not supposed to reach a walk target which is already reached! TransientAcceleration::Reached=>unreachable!(), - TransientAcceleration::Reachable{acceleration,time}=>{ + TransientAcceleration::Reachable{acceleration:_,time:_}=>{ //velocity is already handled by advance_time //we know that the acceleration is precisely zero because the walk target is known to be reachable //which means that gravity can be fully cancelled