mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-10-23 17:20:56 +00:00
refactor to support both CG+projection and KKT
This commit is contained in:
@@ -157,7 +157,7 @@ void DeformableSelfCollision::addCloth(btVector3 origin)
|
||||
getDeformableDynamicsWorld()->addSoftBody(psb);
|
||||
psb->setSelfCollision(true);
|
||||
|
||||
btDeformableMassSpringForce* mass_spring = new btDeformableMassSpringForce(2,0.02, true);
|
||||
btDeformableMassSpringForce* mass_spring = new btDeformableMassSpringForce(2,0.2, true);
|
||||
psb->setSpringStiffness(4);
|
||||
getDeformableDynamicsWorld()->addForce(psb, mass_spring);
|
||||
m_forces.push_back(mass_spring);
|
||||
|
||||
Reference in New Issue
Block a user