contact force is now Zero by default

This commit is contained in:
Sara 2023-11-02 19:39:53 +01:00
parent a1add96b9b
commit 2f830ce308

View file

@ -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