BEPUphysics.Constraints.SolverGroups.SolverGroup.SolveIteration C# (CSharp) Method

SolveIteration() public method

Computes one iteration of the constraint to meet the solver updateable's goal.
public SolveIteration ( ) : float
return float
        public override float SolveIteration()
        {
            int activeConstraints = 0;
            for (int i = 0; i < solverUpdateables.Count; i++)
            {
                SolveUpdateable(solverUpdateables.Elements[i], ref activeConstraints);
            }
            isActiveInSolver = activeConstraints > 0;
            return solverSettings.minimumImpulse + 1; //Never let the system deactivate due to low impulses; solver group takes care of itself.
        }