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

FlipBuffers() public method

Acquires a lock on the FlipLocker and forces the internal buffers to flip.
public FlipBuffers ( ) : void
return void
        public void FlipBuffers()
        {
            lock (FlipLocker)
            {
                MotionState[] formerFrontBuffer = frontBuffer;
                frontBuffer = backBuffer;
                backBuffer = formerFrontBuffer;
            }
        }