diff --git a/Ball.cpp b/Ball.cpp index b85d6fb..f9044a3 100644 --- a/Ball.cpp +++ b/Ball.cpp @@ -29,7 +29,7 @@ void Ball::_compute_pos(double dt) { if (bouncing) { Center.y = fmax( min_height + height, - A + B * crt_time - (G_CTE / 2) * crt_time * crt_time + min_height + height + A + B * crt_time - (G_CTE / 2) * crt_time * crt_time + min_height ); } else { double n_time = crt_time - stop_bouncing; @@ -40,7 +40,6 @@ void Ball::_compute_pos(double dt) { (min_rad - ((min_rad* (1- exp(-n_time)) + min_rad)/2.)) * sin(5. * n_time); } - std::cout << (*this) << "\n"; Center.x += dt * v_x; Center.z += dt * v_z; surface.update_center_pos(Center);