Elastic Collisions! Edit Block A with the options above. See how many collisions you get! Click the play button at the bottom right to restart the process, but with the new-customized block. If you try 100kg or 9999kg with a velocity below 1, you get very close to the digits of pi! Keep in mind that it is very hard for scratch to handle many collisions, so if Block A touches the wall, the number of collisions will not be exact..
All coding and art -except for the buttons' looks- is by me, https://scratch.mit.edu/users/ArthurDC/ This project is inspired by 3blue1brown on YouTube! This Project is built-in with Elastic Collision-physics - Collisions with no friction. Their velocities are proportional to their old velocity, and mass. The formula to figure out the new velocity after a collision is: m is mass, v is new velocity and u is the old velocity. The sub numbers refer to which object these vectors belong to. Object1: ((m1 - m2)/(m1 + m2))u1 + (2m2/(m1 + m2)) *u2 Object2: (2m1/(m1 + m2))u1 + ((m2 - m1)/(m1 + m2)) *u2