Hit energy dissipation. (non-perfectly elastic collision)
Note: mine work a little differently than the originals. The example code in the videos introduces a vertical decay by bounds checking with inclusive comparitors (<=). I use exclusive (<), so I had to add decay with non-elastic collisions.