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

UpdateSolverActivity() public method

Sets the activity state of the constraint based on the activity state of its connections. Called automatically by the space owning a constaint. If a constraint is a sub-constraint that hasn't been directly added to the space, this may need to be called alongside the preStep from within the parent constraint.
public UpdateSolverActivity ( ) : void
return void
        public override void UpdateSolverActivity()
        {
            if (isActive)
            {
                isActiveInSolver = false;
                for (int i = 0; i < solverUpdateables.Count; i++)
                {
                    var item = solverUpdateables.Elements[i];
                    item.UpdateSolverActivity();
                    isActiveInSolver |= item.isActiveInSolver;
                }
            }
            else
            {
                isActiveInSolver = false;
            }
        }