Bouncing


When the ball approached an edge pixel, a virtual force repelled it. Actually the ball had successive layers like an onion. Layers deeper inside the ball repelled more strongly to insure that the closer it came to a performer, the more it would slow down to a stop. When the ball encountered a side wall, the sign of the horizontal component of it's velocity was reversed.


<< Home