diff --git a/sources/reactphysics3d/engine/ConstraintSolver.cpp b/sources/reactphysics3d/engine/ConstraintSolver.cpp index 3df8c140..43f1fdf2 100644 --- a/sources/reactphysics3d/engine/ConstraintSolver.cpp +++ b/sources/reactphysics3d/engine/ConstraintSolver.cpp @@ -41,6 +41,9 @@ void ConstraintSolver::allocate(std::vector& constraints, std::vect this->bodies = bodies; this->nbBodies = bodies.size(); + // TODO : Now we keep every bodies of the physics world in the "bodies" std:vector of the constraint solver. + // but maybe we could only keep track of the body that are part of some constraints. + // For each constraint for (unsigned int i=0; i