=================SUMMARY=============== This 100% pen project calculates a certain number of digits of pi after the decimal point using the number of collisions between two colliding blocks. ==================MODES================ There are two modes, 0 and 1. In 0, there are less visuals, but it's more performant and best for 5+ digits. 1 is the default mode, and has a pen number display and a super satisfying clack sound. If you want to calculate digits really fast, turn on Scratch turbo mode (shift+click the green flag). ==========HOW DOES THIS WORK?=========== So, this project is a simulation of two colliding blocks in a 2d world without friction. The smaller one's mass is 1, and the bigger's is 100^[digits after decimal point]. The bigger one starts at a certain velocity and when it hits the smaller one, it transfers all of its momentum to it. The number of these collisions consists of the same digits as pi! WOW! To learn why this happens, check out youtube videos by 3Blue1Brown in the notes and credits tab.
Try a small number of digits first. (0-3) For calculating lots of digits, you should use TurboWarp (with turbo mode and 60 FPS it can calculate to 10000 collisions per second!): https://turbowarp.org/395483548 Youtube videos that explain this phenomenon: https://scratch.mit.edu/discuss/youtube/HEfHFsfGXjs https://scratch.mit.edu/discuss/youtube/jsYwFizhncE ❤️ ⭐ Follow @migrin (me) and check out my other projects.