Drag and let go of the ball, it should have momentum
This was made to simulate a ball that would roll. Most friction sims that I see use arrow keys, this one is mobile friendly. There are 2 timers, one is the built in scratch one which is continuous, the other is a variable. Makes timekeeping easy. Momentum here is based on displacement here not direction so it may go the wrong way sometimes works best if you drag in straight lines. May incorporate gravity idk. I guess you could also call this a friction sim. Works best in fullscreen. How it works: Finds initial X,Y coordinates on click. Finds X, Y coordinates on release of ball. Subtracts the two values to give the distance it travelled. Uses speed = distance/time equation To give the initial speed which are both unique for X and Y. Then takes the momentum and slowly reduce it to simulate momentum and friction. Made in 20 mins, the variables used are shown.