Fix bug with assert with joints
This commit is contained in:
parent
828b649081
commit
7b14e13fe6
|
@ -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)
|
||||
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user