no longer need to use start_modes, because all the rigid modes are not saved in .bin files in the preprocessor

This commit is contained in:
jingyuc
2021-11-16 21:05:48 -05:00
parent 2d08d4047a
commit 007eea15cb
15 changed files with 30 additions and 41 deletions

View File

@@ -27,7 +27,6 @@
#include "../Utils/b3ResourcePath.h"
static int start_mode = 6;
static int num_modes = 20;
static btScalar visualize_mode = 0;
static btScalar frequency_scale = 1;
@@ -136,7 +135,7 @@ void ModeVisualizer::initPhysics()
// create volumetric soft body
{
btReducedSoftBody* rsb = btReducedSoftBodyHelpers::createReducedCube(getDeformableDynamicsWorld()->getWorldInfo(), start_mode, num_modes);
btReducedSoftBody* rsb = btReducedSoftBodyHelpers::createReducedCube(getDeformableDynamicsWorld()->getWorldInfo(), num_modes);
getDeformableDynamicsWorld()->addSoftBody(rsb);
rsb->getCollisionShape()->setMargin(0.1);