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);
}
}
}