예제 #1
0
        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);
        }
예제 #2
0
 public override bool Over(CircleHitbox other) => Geom.CircleOverConvexPolygon(other.Circle, Polygon);
 public override bool Over(CircleHitbox other) => Hitboxes.Any(other.Over);
예제 #4
0
 public override bool Over(CircleHitbox other) => Geom.CircleOverCircle(Circle, other.Circle);