you can declare a constant for magic numbers po. 
for example, float const BALL_ELASTICY = 0.40;