Fix bug with assert with joints

This commit is contained in:
Daniel Chappuis 2018-08-22 18:35:53 +02:00
parent 828b649081
commit 7b14e13fe6
2 changed files with 8 additions and 4 deletions

View File

@ -15,6 +15,7 @@
- Bug [#57](https://github.com/DanielChappuis/reactphysics3d/issues/57) has been fixed.
- Bug [#37](https://github.com/DanielChappuis/reactphysics3d/issues/37) has been fixed.
- Bug [#62](https://github.com/DanielChappuis/reactphysics3d/issues/62) has been fixed.
- Bug [#63](https://github.com/DanielChappuis/reactphysics3d/issues/63) has been fixed.
## Version 0.7.0 (May 1, 2018)

View File

@ -398,11 +398,14 @@ void DynamicsWorld::solvePositionCorrection() {
// ---------- Solve the position error correction for the constraints ---------- //
// For each iteration of the position (error correction) solver
for (uint i=0; i<mNbPositionSolverIterations; i++) {
if (mIslands[islandIndex]->getNbJoints() > 0) {
// Solve the position constraints
mConstraintSolver.solvePositionConstraints(mIslands[islandIndex]);
// For each iteration of the position (error correction) solver
for (uint i=0; i<mNbPositionSolverIterations; i++) {
// Solve the position constraints
mConstraintSolver.solvePositionConstraints(mIslands[islandIndex]);
}
}
}
}