Solve the position error correction of the constraints
| 346 | |
| 347 | // Solve the position error correction of the constraints |
| 348 | void PhysicsWorld::solvePositionCorrection() { |
| 349 | |
| 350 | RP3D_PROFILE("PhysicsWorld::solvePositionCorrection()", mProfiler); |
| 351 | |
| 352 | // ---------- Solve the position error correction for the constraints ---------- // |
| 353 | |
| 354 | // For each iteration of the position (error correction) solver |
| 355 | for (uint32 i=0; i<mNbPositionSolverIterations; i++) { |
| 356 | |
| 357 | // Solve the position constraints |
| 358 | mConstraintSolverSystem.solvePositionConstraints(); |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | // Enable or disable the joints |
| 363 | void PhysicsWorld::enableDisableJoints() { |
nothing calls this directly
no test coverage detected