BEPUphysics.Constraints.Collision.ContactManifoldConstraint.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 = pair.BroadPhaseOverlap.collisionRule < CollisionRule.NoSolver &&
                                   ((entityA != null && entityA.isDynamic && entityA.activityInformation.IsActive) || //At least one of the objects must be an active dynamic entity.
                                   (entityB != null && entityB.isDynamic && entityB.activityInformation.IsActive));
                for (int i = 0; i < solverUpdateables.Count; i++)
                {
                    solverUpdateables.Elements[i].isActiveInSolver = solverUpdateables.Elements[i].isActive && isActiveInSolver;
                }
            }
            else
                isActiveInSolver = false;
            

        }