BEPUphysics.NarrowPhaseSystems.NarrowPhasePairFactory.CapCount C# (CSharp) Method

CapCount() public method

Ensures that the factory has at most the given number of elements ready to take.
public CapCount ( int maximumCount ) : void
maximumCount int Maximum number of elements to allow in the factory.
return void
        public void CapCount(int maximumCount)
        {
            if (Count > maximumCount)
                Count = maximumCount;
        }