Box2DX.Collision.BroadPhase.InRange C# (CSharp) Method

InRange() public method

public InRange ( AABB aabb ) : bool
aabb AABB
return bool
		public bool InRange(AABB aabb)
		{
			Vector2 d = Vector2.Max(aabb.LowerBound - _worldAABB.UpperBound, _worldAABB.LowerBound - aabb.UpperBound);
			return Mathf.Max(d.x, d.y) < 0.0f;
		}

Usage Example

Example #1
0
 internal void RefilterProxy(BroadPhase broadPhase, XForm transform)
 {
     if (this._proxyId != PairManager.NullProxy)
     {
         broadPhase.DestroyProxy((int)this._proxyId);
         AABB aabb;
         this.ComputeAABB(out aabb, transform);
         bool flag = broadPhase.InRange(aabb);
         if (flag)
         {
             this._proxyId = broadPhase.CreateProxy(aabb, this);
         }
         else
         {
             this._proxyId = PairManager.NullProxy;
         }
     }
 }
All Usage Examples Of Box2DX.Collision.BroadPhase::InRange