Beispiel #1
0
 public abstract bool Collide(Circle circle);
Beispiel #2
0
 public override bool Collide(Circle circle)
 {
     return Platformer.Collide.RectToCircle(AbsoluteLeft, AbsoluteTop, Width, Height, circle.AbsolutePosition, circle.Radius);
 }
Beispiel #3
0
        public override bool Collide(Circle circle)
        {
            foreach (var c in colliders)
                if (c.Collide(circle))
                    return true;

            return false;
        }
Beispiel #4
0
 public override bool Collide(Circle circle)
 {
     return Vector2.Distance(AbsolutePosition, circle.AbsolutePosition) < (Radius + circle.Radius);
 }
Beispiel #5
0
 public override bool Collide(Circle circle)
 {
     return false;
 }