public override bool Over(CircleHitbox other)
        {
            bool result = Geom.Overlap(
                new Circle(Center1, Radius),
                new Circle(Center2, Radius),
                other.Circle
                );

            /*           if (result) {
             *             Console.WriteLine (new Circle (Center1, Radius));
             *             Console.WriteLine (new Circle (Center2, Radius));
             *             Console.WriteLine (other.Circle);
             *             Console.WriteLine ();
             *         }*/
            return(result);
        }
 public override bool Over(CircleHitbox other) => Geom.CircleOverConvexPolygon(other.Circle, Polygon);
 public override bool Over(CircleHitbox other) => Hitboxes.Any(other.Over);
Exemple #4
0
 public override bool Over(CircleHitbox other) => Geom.CircleOverCircle(Circle, other.Circle);