objectively funi pi algorithm take the code for the ONE dimensional elastic collision if you want (it wasn't mine to begin with :trol:) Press space to redo, press R to make it run instantly (as fast as scratch can do it atleast) math is weird
thanks to @scratch-minion for the elastic collision code if you want an explanation, I don't got it I just saw that it works in a 1brown3blue vido so watch his explanation ig sorry for reshare after sharing it for half a minute I was dum and forgot to make a thumbnail. #pi #piboxes