Learn Create Your Own Split Screen

Next Page

Before we get to bouncing, let's think about the mechanics of the motion we've got going.

The ball has a certain position (x and y), and also a certain velocity expressed as x and y components).

For each frame, the x and y positions are altered by the amount of the x and y velocities, producing an apparent effective motion.