From 256ea14327df96be6928f81d0d241696b1550c29 Mon Sep 17 00:00:00 2001 From: Irlan <-> Date: Mon, 2 Apr 2018 20:38:35 -0300 Subject: [PATCH] bugfix --- src/bounce/dynamics/cloth/spring_cloth.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bounce/dynamics/cloth/spring_cloth.cpp b/src/bounce/dynamics/cloth/spring_cloth.cpp index 486ca6a..060f796 100644 --- a/src/bounce/dynamics/cloth/spring_cloth.cpp +++ b/src/bounce/dynamics/cloth/spring_cloth.cpp @@ -406,20 +406,22 @@ void b3SpringCloth::UpdateContacts() c->Ft1 = 0.0f; c->Ft2 = 0.0f; c->lockN = true; + c->lockT1 = false; + c->lockT2 = false; } #if B3_CLOTH_FRICTION == 1 // Apply friction impulses - // Note without a friction force, the tangential acceleration won't be - // removed. - // Relative velocity b3Vec3 dv = m_v[i]; b3MakeTangents(c->t1, c->t2, dv, n); + // Note without a friction force, the tangential acceleration won't be + // removed. + // Coefficients of friction for the solid const float32 uk = shape->GetFriction(); const float32 us = 2.0f * uk;