gravity ball in the x and y directions

gravity ball in the x and y directions.