Optimized ball bounces