Press E to change the ball's location Press Space to change the ground's location Press the red stop button to stop if caught in an infinite bounce loop This is just a simple project to simulate a realistic bounce effect Every time the ball hits the ground, it loses 25% of its energy, Here it might be glitchy and when the ball is really close that it either keeps bouncing or comes to a sudden halt, this bug is due to the number of pixels the scratch stage has and due to that you can either move 1 or 0 pixels (scratch rounds off a number such as 15.34323 to 15 and moves 15 pixels) so due to this issue it isn't really accurate
Feel free to use it BUT ONLY WITH CREDIT!!!! Credit @subbyinscratch #Tutorials