update examples to include NeoHookean Model and new damping model

This commit is contained in:
Xuchen Han
2019-08-19 12:04:10 -07:00
parent 44e7c4a96d
commit 9af25430ac
5 changed files with 13 additions and 11 deletions

View File

@@ -236,9 +236,9 @@ void VolumetricDeformable::initPhysics()
psb->m_cfg.kCHR = 1; // collision hardness with rigid body
psb->m_cfg.kDF = 0.5;
psb->m_cfg.collisions = btSoftBody::fCollision::SDF_RD;
getDeformableDynamicsWorld()->addForce(psb, new btDeformableMassSpringForce(0,0.01));
getDeformableDynamicsWorld()->addForce(psb, new btDeformableMassSpringForce(0,0.03));
getDeformableDynamicsWorld()->addForce(psb, new btDeformableGravityForce(gravity));
getDeformableDynamicsWorld()->addForce(psb, new btDeformableCorotatedForce(.5,.5));
getDeformableDynamicsWorld()->addForce(psb, new btDeformableNeoHookeanForce(.5,2.5));
}
// add a few rigid bodies
Ctor_RbUpStack(4);