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()