mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-10-06 00:45:28 +00:00
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:
@@ -31,7 +31,6 @@
|
||||
// static btScalar nu = 0.3;
|
||||
static btScalar damping_alpha = 0.0;
|
||||
static btScalar damping_beta = 0.0001;
|
||||
static int start_mode = 6;
|
||||
static int num_modes = 20;
|
||||
|
||||
class ReducedGrasp : public CommonDeformableBodyBase
|
||||
@@ -279,7 +278,7 @@ void ReducedGrasp::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.015);
|
||||
|
||||
Reference in New Issue
Block a user