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

GetStates() public method

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