Box2DX.Collision.Pair.IsBuffered C# (CSharp) Méthode

IsBuffered() public méthode

public IsBuffered ( ) : bool
Résultat bool
		public bool IsBuffered() { return (Status & PairStatus.PairBuffered) == PairStatus.PairBuffered; }

Usage Example

Exemple #1
0
        private void ValidateTable()
        {
#if DEBUG
            for (int i = 0; i < PairManager.TableCapacity; ++i)
            {
                ushort index = _hashTable[i];
                while (index != PairManager.NullPair)
                {
                    Pair pair = _pairs[index];
                    Box2DXDebug.Assert(pair.IsBuffered() == false);
                    Box2DXDebug.Assert(pair.IsFinal() == true);
                    Box2DXDebug.Assert(pair.IsRemoved() == false);

                    Box2DXDebug.Assert(pair.ProxyId1 != pair.ProxyId2);
                    Box2DXDebug.Assert(pair.ProxyId1 < Settings.MaxProxies);
                    Box2DXDebug.Assert(pair.ProxyId2 < Settings.MaxProxies);

                    Proxy proxy1 = _broadPhase._proxyPool[pair.ProxyId1];
                    Proxy proxy2 = _broadPhase._proxyPool[pair.ProxyId2];

                    Box2DXDebug.Assert(proxy1.IsValid == true);
                    Box2DXDebug.Assert(proxy2.IsValid == true);

                    Box2DXDebug.Assert(_broadPhase.TestOverlap(proxy1, proxy2) == true);

                    index = pair.Next;
                }
            }
#endif
        }
All Usage Examples Of Box2DX.Collision.Pair::IsBuffered