From 1babc1b40685ed19d294b587d49f7c3258a8c8c7 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Wed, 30 May 2018 15:35:53 -0300 Subject: [PATCH] initialize spring force --- src/bounce/dynamics/cloth/spring_force.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bounce/dynamics/cloth/spring_force.cpp b/src/bounce/dynamics/cloth/spring_force.cpp index b0c793f..d4fe97b 100644 --- a/src/bounce/dynamics/cloth/spring_force.cpp +++ b/src/bounce/dynamics/cloth/spring_force.cpp @@ -40,6 +40,7 @@ b3SpringForce::b3SpringForce(const b3SpringForceDef* def) m_L0 = def->restLength; m_ks = def->structural; m_kd = def->damping; + m_f.SetZero(); } b3SpringForce::~b3SpringForce()