MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / solvePositionCorrection

Method solvePositionCorrection

src/engine/PhysicsWorld.cpp:348–360  ·  view source on GitHub ↗

Solve the position error correction of the constraints

Source from the content-addressed store, hash-verified

346
347// Solve the position error correction of the constraints
348void 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
363void PhysicsWorld::enableDisableJoints() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected