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