示例#1
0
        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);
        }
示例#2
0
 public abstract Boolean IsOverlapping(AnimatedGameObject obj);