Set particle radius to thickness

This commit is contained in:
Irlan 2019-06-18 11:58:10 -03:00
parent f9e8d9394b
commit 9d935ea17f

View File

@ -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);