From 9066264189e27c85bd7a16b04cd3bb32c6a8ef8c Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Tue, 12 Dec 2017 22:36:19 +0100 Subject: [PATCH] Remove commented code --- src/engine/DynamicsWorld.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/engine/DynamicsWorld.cpp b/src/engine/DynamicsWorld.cpp index bb824228..66b13a8e 100644 --- a/src/engine/DynamicsWorld.cpp +++ b/src/engine/DynamicsWorld.cpp @@ -358,20 +358,6 @@ void DynamicsWorld::solveContactsAndConstraints() { // Check if there are contacts and constraints to solve bool isConstraintsToSolve = mIslands[islandIndex]->getNbJoints() > 0; - //bool isContactsToSolve = mIslands[islandIndex]->getNbContactManifolds() > 0; - //if (!isConstraintsToSolve && !isContactsToSolve) continue; - - // If there are contacts in the current island -// if (isContactsToSolve) { - -// // Initialize the solver -// mContactSolver.initializeForIsland(mTimeStep, mIslands[islandIndex]); - -// // Warm start the contact solver -// if (mContactSolver.IsWarmStartingActive()) { -// mContactSolver.warmStart(); -// } -// } // If there are constraints if (isConstraintsToSolve) { @@ -393,15 +379,6 @@ void DynamicsWorld::solveContactsAndConstraints() { } mContactSolver.solve(); - - // Solve the contacts -// if (isContactsToSolve) { - -// mContactSolver.resetTotalPenetrationImpulse(); - -// mContactSolver.solvePenetrationConstraints(); -// mContactSolver.solveFrictionConstraints(); -// } } mContactSolver.storeImpulses();