BEPUphysics.EntityStateManagement.StateReadBuffers.GetStates C# (CSharp) Method

GetStates() public method

Gets the states of all entities atomically.
Thrown when the array is too small.
public GetStates ( MotionState states ) : void
states MotionState Entity states.
return void
        public void GetStates(MotionState[] states)
        {
            lock (FlipLocker)
            {
                if (states.Length < manager.entities.Count)
                {
                    throw new ArgumentException("Array is not large enough to hold the buffer.", "states");
                }
                Array.Copy(frontBuffer, states, manager.entities.Count);
            }
        }
    }