by Happy Lobster (6 Submissions)
Category: Games
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)

A realistic, interactive bouncing ball algorithm. You click on the ball and throw it within the window. It displays the trail of motion for a fancy effect. Uses constants: bounce coefficient, air resistance and ground resistance. This code is adapted from Doug Pucketts bouncing balls screensaver at https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=13701&lngWId=1 with changes to his bounce algorithm. Thanks. ** UPDATE: Uploaded Version with trails **
Download Realistic Bouncing Ball (29 KB)