diff --git a/Ball.cpp b/Ball.cpp index 1e2496b..350f990 100644 --- a/Ball.cpp +++ b/Ball.cpp @@ -83,6 +83,8 @@ void Ball::update_pos(double dt) { _compute_T_n(); _compute_v_x(normal); _compute_v_z(normal); + min_height = fmin(radius, min_height + 0.2 * (radius - min_height)); + std::cout << "U:" << U << "\n"; max_t = (T - old_t)/2.0 + old_t; if (((A + B * max_t - (G_CTE / 2) * max_t * max_t + min_height) < radius)) {