Min_height evolves in time.

This commit is contained in:
Rémi Oudin 2018-02-13 22:45:29 +01:00
parent c0a793bc97
commit 0db091f76e

View file

@ -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)) {