Box2D.Collision.Collision.TestOverlap C# (CSharp) Метод

TestOverlap() публичный Метод

Determine if two generic shapes overlap.
public TestOverlap ( Shape shapeA, int indexA, Shape shapeB, int indexB, Transform xfA, Transform xfB ) : bool
shapeA Box2D.Collision.Shapes.Shape
indexA int
shapeB Box2D.Collision.Shapes.Shape
indexB int
xfA Box2D.Common.Transform
xfB Box2D.Common.Transform
Результат bool
        public bool TestOverlap(Shape shapeA, int indexA, Shape shapeB, int indexB, Transform xfA, Transform xfB)
        {
            input.ProxyA.Set(shapeA, indexA);
            input.ProxyB.Set(shapeB, indexB);
            input.TransformA.Set(xfA);
            input.TransformB.Set(xfB);
            input.UseRadii = true;

            cache.Count = 0;

            pool.GetDistance().GetDistance(output, cache, input);
            // djm note: anything significant about 10.0f?
            return output.Distance < 10.0f * Settings.EPSILON;
        }