Are you saying that the "ball" should start at the top of the matrix with some constant horizontal "velocity", and fall to the bottom as it "bounces" off the sides of the matrix?
Are you saying that the "ball" should start at the top of the matrix with some constant horizontal "velocity", and fall to the bottom as it "bounces" off the sides of the matrix?