Added mass in gravity calculations
ballIndex bug fix