From f1c4cf46797855d0d20d2f957dba274ccf48af0b Mon Sep 17 00:00:00 2001 From: Irlan Date: Mon, 13 May 2019 16:24:09 -0300 Subject: [PATCH] Destroy contact if type changed --- src/bounce/cloth/particle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bounce/cloth/particle.cpp b/src/bounce/cloth/particle.cpp index 1b3fa6f..aa0bc67 100644 --- a/src/bounce/cloth/particle.cpp +++ b/src/bounce/cloth/particle.cpp @@ -75,4 +75,6 @@ void b3Particle::SetType(b3ParticleType type) m_velocity.SetZero(); m_translation.SetZero(); } + + m_bodyContact.active = false; } \ No newline at end of file