Added per triangle stretching force and damping. This gives more realistics results. Also updated the tests.

Saying goodbye to mass-spring system!
This commit is contained in:
Irlan
2019-06-26 20:30:33 -03:00
parent 52439f3414
commit 0733ebd3be
14 changed files with 495 additions and 108 deletions

View File

@ -34,8 +34,7 @@ public:
b3ClothDef def;
def.mesh = &m_clothMesh;
def.density = 0.2f;
def.structural = 10000.0f;
def.damping = 0.0f;
def.streching = 10000.0f;
def.thickness = 0.2f;
def.friction = 0.1f;