(suppse the softbody is like clay)
I do have set the pose matching to be "false" in setPose(true,false)function.
So I think the softbody will not try to keep its pose.
But when my hands move away the softbody, the softbody returns to its original shape.
could anyone tell me how to avoid this happening.
Here are the config of the softbody.
Code: Select all
sphere = btSoftBodyHelpers::CreateEllipsoid(m_softBodyWorldInfo,
btVector3(0, 100, 400),
btVector3(1, 1, 1)*60,
10000);
sphere->m_cfg.collisions|=btSoftBody::fCollision::VF_SS;
sphere->setTotalMass(1000000,false);
sphere->setPose(true, false);
sphere->m_cfg.piterations = 1;
sphere->m_cfg.kVC = 2;
sphere->m_materials[0]->m_kLST = 1;
sphere->m_cfg.kMT = 1;
sphere->m_cfg.kDF = 1;
sphere->m_cfg.kDP = 0.08;
sphere->m_cfg.kPR = 0;
sphere->m_cfg.kCHR = 1;
sphere->m_cfg.kKHR = 1;
sphere->m_cfg.kSHR = 1;
dynamicsWorld->addSoftBody(sphere);
Yang