public static bool IsBelowOf(ref Rectangle player, Rectangle box, ref Vector2 velocity, ref Vector2 playerPosition, bool positionBoxes = true) { bool rtn = player.IsBelowOf(box, velocity); if (positionBoxes && rtn) { velocity.Y = 0; playerPosition.Y = box.Bottom; player.Y = (int)playerPosition.Y; } return rtn; }