BEPUphysics.SolverSystems.Solver.Add C# (CSharp) Метод

Add() публичный Метод

Adds a solver updateable to the solver.
Thrown when the item already belongs to a solver.
public Add ( SolverUpdateable item ) : void
item SolverUpdateable Updateable to add.
Результат void
        public void Add(SolverUpdateable item)
        {
            if (item.Solver == null)
            {
                item.Solver = this;
                item.solverIndex = solverUpdateables.Count;
                solverUpdateables.Add(item);
                DeactivationManager.Add(item.simulationIslandConnection);
                item.OnAdditionToSolver(this);
            }
            else
                throw new ArgumentException("Solver updateable already belongs to something; it can't be added.", "item");
        }
        ///<summary>