re-compute all the modes using the new python preprocessor. clean up initialization

This commit is contained in:
jingyuc
2021-11-16 17:23:19 -05:00
parent 676221fb3e
commit 18f81dcaea
14 changed files with 4 additions and 16 deletions

View File

@@ -136,7 +136,7 @@ void ModeVisualizer::initPhysics()
// create volumetric soft body
{
btReducedSoftBody* rsb = btReducedSoftBodyHelpers::createReducedBeam(getDeformableDynamicsWorld()->getWorldInfo(), start_mode, num_modes);
btReducedSoftBody* rsb = btReducedSoftBodyHelpers::createReducedCube(getDeformableDynamicsWorld()->getWorldInfo(), start_mode, num_modes);
getDeformableDynamicsWorld()->addSoftBody(rsb);
rsb->getCollisionShape()->setMargin(0.1);