This commit is contained in:
Quaternions 2023-11-11 21:32:59 -08:00
parent 46d6c31957
commit 6071e23be1

View File

@ -790,9 +790,7 @@ impl TouchingState{
match models.attr(contact.model_id){
PhysicsCollisionAttributes::Contact{contacting,general}=>{
match &general.accelerator{
Some(accelerator)=>{
a+=accelerator.acceleration;
},
Some(accelerator)=>a+=accelerator.acceleration,
None=>(),
}
},
@ -803,9 +801,7 @@ impl TouchingState{
match models.attr(intersect.model_id){
PhysicsCollisionAttributes::Intersect{intersecting,general}=>{
match &general.accelerator{
Some(accelerator)=>{
a+=accelerator.acceleration;
},
Some(accelerator)=>a+=accelerator.acceleration,
None=>(),
}
},