Box2DX.Dynamics.ContactFilter.RayCollide C# (CSharp) Метод

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

Return true if the given shape should be considered for ray intersection.
public RayCollide ( object userData, Shape shape ) : bool
userData object
shape Box2DX.Collision.Shape
Результат bool
        public bool RayCollide(object userData, Shape shape)
        {
            //By default, cast userData as a shape, and then collide if the shapes would collide
            if (userData == null)
                return true;
            return ShouldCollide((Shape)userData, shape);
        }