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))); }
public CollideInfo GetCollideInfo(IReactiveCollideable other) { return(collideInfo); }