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

@@ -32,7 +32,6 @@
static btScalar damping_alpha = 0.0;
static btScalar damping_beta = 0.0;
static btScalar COLLIDING_VELOCITY = 4;
static int start_mode = 6;
static int num_modes = 20;
class ReducedCollide : public CommonDeformableBodyBase
@@ -205,7 +204,7 @@ void ReducedCollide::initPhysics()
// create volumetric reduced deformable 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);