bounce Uses rotation to find the surface normal of the surface the ball touches (surface normal is the angle perpendicular to the surface, so you just have to add 90) then uses the formula: d = (2 * s) - a where s is the angle of the surface, a is the initial direction, d is the exit direct to make the ball bounce.