From 2f830ce30856259d0cb14c72f0fe4d51a74f3834 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 2 Nov 2023 19:39:53 +0100 Subject: [PATCH] contact force is now Zero by default --- src/physics_entity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physics_entity.c b/src/physics_entity.c index 5145ede..4e86d2a 100644 --- a/src/physics_entity.c +++ b/src/physics_entity.c @@ -36,7 +36,7 @@ Vector _internal_calculate_contact_force(RigidBody* self, Contact* contact) { const float damping = 0.0; const float push = vdotf(normal, velocity); - return vsubf(vmulff(normal, elasticity * fmaxf(1.0, -push)), vmulff(normal, damping * fminf(0.0, push))); + return ZeroVector; //vsubf(vmulff(normal, elasticity * fmaxf(1.0, -push)), vmulff(normal, damping * fminf(0.0, push))); } static inline