BEPUphysics.OtherSpaceStages.ForceUpdater.Add C# (CSharp) Method

Add() public method

Adds a force updateable to the force updater.
Thrown when the item already belongs to a force updater.
public Add ( IForceUpdateable forceUpdateable ) : void
forceUpdateable IForceUpdateable Item to add.
return void
        public void Add(IForceUpdateable forceUpdateable)
        {
            if (forceUpdateable.ForceUpdater == null)
            {
                forceUpdateable.ForceUpdater = this;
                if (forceUpdateable.IsDynamic)
                    dynamicObjects.Add(forceUpdateable);
            }
            else
                throw new Exception("Cannot add updateable; it already belongs to another manager.");
        }
        ///<summary>