diff --git a/src/bounce/cloth/cloth_contact_manager.cpp b/src/bounce/cloth/cloth_contact_manager.cpp index 86731c9..77c09bd 100644 --- a/src/bounce/cloth/cloth_contact_manager.cpp +++ b/src/bounce/cloth/cloth_contact_manager.cpp @@ -283,7 +283,7 @@ void b3ClothContactManager::UpdateBodyContacts() while (c) { bool isntDynamic1 = c->m_p1->m_type != e_dynamicParticle; - bool isntDynamic2 = c->m_s2->GetType() != e_dynamicBody; + bool isntDynamic2 = c->m_s2->GetBody()->GetType() != e_dynamicBody; // Cease the contact if entities must not collide with each other. if (isntDynamic1 && isntDynamic2)