Script to get accurate bounce in both vertical and horizontal directions using change in velocity rather than 360-direction