public override Boolean IsOverlapping(AnimatedGameObject obj) { Rectangle rect = new Rectangle((int)obj.PositionX, (int)obj.PositionY, obj.BoundingWidth, obj.BoundingHeight); if (CollisionDetection.IsCircleInRectangle(Position, radius, rect)) { return(true); } return(false); }
public abstract Boolean IsOverlapping(AnimatedGameObject obj);