How can I detect if the ball in the breakout.c problem (pset3) is moving up or down? In other words how do I detect changes in Y parameter of velocity?
Are there any functions for this purpose in the Stanford package? Or if anyone can provide insight to some process to get the same, the one which I'm currently overlooking.