From 75fc077007804d5970e13be19aed8010c484087b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Tue, 13 Feb 2018 18:26:18 +0100 Subject: [PATCH] No more glitch. --- Ball.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);