From 9d935ea17f4913bc408401844b319f0cd3b570fe Mon Sep 17 00:00:00 2001 From: Irlan Date: Tue, 18 Jun 2019 11:58:10 -0300 Subject: [PATCH] Set particle radius to thickness --- src/bounce/cloth/cloth.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bounce/cloth/cloth.cpp b/src/bounce/cloth/cloth.cpp index 13aa712..98da7f1 100644 --- a/src/bounce/cloth/cloth.cpp +++ b/src/bounce/cloth/cloth.cpp @@ -173,6 +173,7 @@ b3Cloth::b3Cloth(const b3ClothDef& def) : pd.type = e_dynamicParticle; pd.mass = 1.0f; pd.position = m->vertices[i]; + pd.radius = def.thickness; b3Particle* p = CreateParticle(pd);