removed duplicate assignment from rigidbody_add_contact
This commit is contained in:
parent
def06c4018
commit
57ef426982
|
@ -49,7 +49,6 @@ void rigidbody_add_contact(RigidBody* self, Collision hit) {
|
|||
list_foreach(Contact, contact, &self->contacts) {
|
||||
if(contact->hit.other.data == hit.other.data) {
|
||||
++contact->expiry;
|
||||
hit.velocity = contact->hit.velocity;
|
||||
contact->hit = hit;
|
||||
contact->duration += delta_time();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue