示例#1
0
        public CollideInfo GetCollideInfo(IReactiveCollideable other)
        {
            fuzz = (int)(rand.NextDouble() * width - width / 2);

            Rectangle otherPos = other.GetBoundingBox();

            return(new CollideInfo(PongGame.Orientation.HORIZONTAL, Math.Max(0, (otherPos.X + otherPos.Width / 2.0 - xPos) / width)));
        }
示例#2
0
 public CollideInfo GetCollideInfo(IReactiveCollideable other)
 {
     return(collideInfo);
 }