Bouncing Ball Model: Use of Zero Crossing Detection

A rubber ball is thrown into the air with a velocity of 15 meters per second from a height of 10 m. The position of the ball is shown in the lower plot of the scope, and the velocity of the ball is shown in the upper plot.

This system uses a reset integrator to change the direction of the ball as it comes into contact with the ground, the zero crossing detection prevents the ball from going below the ground.