From 57ef4269829fc9c5f8389f69ff7edee4de3e1405 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 25 Oct 2023 20:26:46 +0200 Subject: [PATCH] removed duplicate assignment from rigidbody_add_contact --- src/rigidbody.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rigidbody.c b/src/rigidbody.c index 66b2140..86817a2 100644 --- a/src/rigidbody.c +++ b/src/rigidbody.c @@ -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;