i promise, this isn’t an april fools joke. (the code is spaghetti though)
the physics isn’t absolutely perfect (when the ball hits the cord, it gains a tiny bit of speed for some reason (this is more noticeable in some cases than others)), but it looks pretty legitimate for the most part.
also, to make the coding much easier, the collision is at the middle of the ball, not the edges of the ball.
there are a couple of settings you can tweak in the frame’s default frame.
cord stiffness should be more than 0 (1 works). note that it is better at smaller numbers (maybe 500 or less), and it isn’t that good once you get to 50000-ish.
wall energy loss should be between 0 and 1. 0 doesn’t make too much sense, it just stops at the wall. but it does work.
if you want to use this for something, go ahead i guess, but the code is very spaghetti and mostly for demonstration.