This project shows a mechanism that turns rotational movement into (in this case) horizontal movement. If you want to make one, just go and research, because it's very hard for my brain to explain. OR you could study this project and figure it out. I don't know... Moving the "Node 1 Position" variable moves it along the line on the circle, the closer it is to the middle, the less horizontal movement. Other variables are self-explanatory.
Music: Dive (Instrumental Version) by Lvly It is possible to make in real life, I've made one out of Lego. For it to work, you need to make sure it has something that locks it on a straight line, in this case (with code), I locked it to 0 on the y-axis, this stops it from going to random places and makes sure it only moves that one way. But that's a really bad way of explaining It may seem unrealistic, but if you watch closely and see how the nodes are connected by the stick, then when the circle turns it effectively pulls the stick and the other node, which moves it. And as long as you have something that locks it on a line, it's very cool to watch.