From 4e70174da725e0e207620619cee52aa2ff80652b Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Wed, 20 Jul 2016 07:18:17 +0200 Subject: [PATCH] Use default nb solver iterations in demo scenes --- testbed/scenes/collisionshapes/CollisionShapesScene.cpp | 3 --- testbed/scenes/concavemesh/ConcaveMeshScene.cpp | 3 --- testbed/scenes/cubes/CubesScene.cpp | 3 --- testbed/scenes/heightfield/HeightFieldScene.cpp | 3 --- testbed/scenes/joints/JointsScene.cpp | 3 --- 5 files changed, 15 deletions(-) diff --git a/testbed/scenes/collisionshapes/CollisionShapesScene.cpp b/testbed/scenes/collisionshapes/CollisionShapesScene.cpp index bcf7c836..e18feea9 100644 --- a/testbed/scenes/collisionshapes/CollisionShapesScene.cpp +++ b/testbed/scenes/collisionshapes/CollisionShapesScene.cpp @@ -48,9 +48,6 @@ CollisionShapesScene::CollisionShapesScene(const std::string& name) // Create the dynamics world for the physics simulation mDynamicsWorld = new rp3d::DynamicsWorld(gravity); - // Set the number of iterations of the constraint solver - mDynamicsWorld->setNbIterationsVelocitySolver(15); - float radius = 3.0f; for (int i=0; isetNbIterationsVelocitySolver(15); - // ---------- Create the boxes ----------- // for (int i=0; isetNbIterationsVelocitySolver(15); - float radius = 2.0f; // Create all the cubes of the scene diff --git a/testbed/scenes/heightfield/HeightFieldScene.cpp b/testbed/scenes/heightfield/HeightFieldScene.cpp index ab168b13..8779fa9c 100644 --- a/testbed/scenes/heightfield/HeightFieldScene.cpp +++ b/testbed/scenes/heightfield/HeightFieldScene.cpp @@ -45,9 +45,6 @@ HeightFieldScene::HeightFieldScene(const std::string& name) : SceneDemo(name, SC // Create the dynamics world for the physics simulation mDynamicsWorld = new rp3d::DynamicsWorld(gravity); - // Set the number of iterations of the constraint solver - mDynamicsWorld->setNbIterationsVelocitySolver(15); - // ---------- Create the boxes ----------- // // For each box diff --git a/testbed/scenes/joints/JointsScene.cpp b/testbed/scenes/joints/JointsScene.cpp index ae006573..9927613f 100644 --- a/testbed/scenes/joints/JointsScene.cpp +++ b/testbed/scenes/joints/JointsScene.cpp @@ -47,9 +47,6 @@ JointsScene::JointsScene(const std::string& name) // Create the dynamics world for the physics simulation mDynamicsWorld = new rp3d::DynamicsWorld(gravity); - // Set the number of iterations of the constraint solver - mDynamicsWorld->setNbIterationsVelocitySolver(15); - // Create the Ball-and-Socket joint createBallAndSocketJoints();