Use default nb solver iterations in demo scenes

This commit is contained in:
Daniel Chappuis 2016-07-20 07:18:17 +02:00
parent 9cc633fc67
commit 4e70174da7
5 changed files with 0 additions and 15 deletions

View File

@ -48,9 +48,6 @@ CollisionShapesScene::CollisionShapesScene(const std::string& name)
// Create the dynamics world for the physics simulation // Create the dynamics world for the physics simulation
mDynamicsWorld = new rp3d::DynamicsWorld(gravity); mDynamicsWorld = new rp3d::DynamicsWorld(gravity);
// Set the number of iterations of the constraint solver
mDynamicsWorld->setNbIterationsVelocitySolver(15);
float radius = 3.0f; float radius = 3.0f;
for (int i=0; i<NB_COMPOUND_SHAPES; i++) { for (int i=0; i<NB_COMPOUND_SHAPES; i++) {

View File

@ -48,9 +48,6 @@ ConcaveMeshScene::ConcaveMeshScene(const std::string& name)
// Create the dynamics world for the physics simulation // Create the dynamics world for the physics simulation
mDynamicsWorld = new rp3d::DynamicsWorld(gravity); mDynamicsWorld = new rp3d::DynamicsWorld(gravity);
// Set the number of iterations of the constraint solver
mDynamicsWorld->setNbIterationsVelocitySolver(15);
// ---------- Create the boxes ----------- // // ---------- Create the boxes ----------- //
for (int i=0; i<NB_BOXES_X; i++) { for (int i=0; i<NB_BOXES_X; i++) {

View File

@ -46,9 +46,6 @@ CubesScene::CubesScene(const std::string& name)
// Create the dynamics world for the physics simulation // Create the dynamics world for the physics simulation
mDynamicsWorld = new rp3d::DynamicsWorld(gravity); mDynamicsWorld = new rp3d::DynamicsWorld(gravity);
// Set the number of iterations of the constraint solver
mDynamicsWorld->setNbIterationsVelocitySolver(15);
float radius = 2.0f; float radius = 2.0f;
// Create all the cubes of the scene // Create all the cubes of the scene

View File

@ -45,9 +45,6 @@ HeightFieldScene::HeightFieldScene(const std::string& name) : SceneDemo(name, SC
// Create the dynamics world for the physics simulation // Create the dynamics world for the physics simulation
mDynamicsWorld = new rp3d::DynamicsWorld(gravity); mDynamicsWorld = new rp3d::DynamicsWorld(gravity);
// Set the number of iterations of the constraint solver
mDynamicsWorld->setNbIterationsVelocitySolver(15);
// ---------- Create the boxes ----------- // // ---------- Create the boxes ----------- //
// For each box // For each box

View File

@ -47,9 +47,6 @@ JointsScene::JointsScene(const std::string& name)
// Create the dynamics world for the physics simulation // Create the dynamics world for the physics simulation
mDynamicsWorld = new rp3d::DynamicsWorld(gravity); mDynamicsWorld = new rp3d::DynamicsWorld(gravity);
// Set the number of iterations of the constraint solver
mDynamicsWorld->setNbIterationsVelocitySolver(15);
// Create the Ball-and-Socket joint // Create the Ball-and-Socket joint
createBallAndSocketJoints(); createBallAndSocketJoints();