Page 1 of 1

### Swing Explorer

Posted: Tue Nov 13, 2018 4:01 pm
How does swinging work? Like - pumping your legs... how does that get you swinging higher and higher?

...

It's simple enough to actually go to a playground and swing - but when you start going into conservation of energy/momentum/angular momentum, this topic can get a bit (a lot) confusing. For instance, this forum thread:
http://audiophile.tam.cornell.edu/randpdf/swing.pdf

So I thought I'd make the simplest model I could think of, and get a better understanding of what's going on. Take a look, and try it out yourself:
https://testtubegames.com/swing.html

...

So... did you figure it out? What's happening here?

### Re: Swing Explorer

Posted: Mon Mar 18, 2019 10:47 pm
I'm not exactly sure, but I think it's the tension in the rope! My teacher, brother, and mathematical dad told me a lot about centripetal force (and centrifugal force, which, apparently, doesn't exist). I came to this conclusion because I noticed that the second the tension in the rope was less than the force of gravity, the rope would gain slack, and could no longer take the kid any higher. When I set the rope to be rigid, however, the problem disappeared. The rope sort of "stores" your energy you put into it by pumping your legs, and by pumping you legs when you reach the "peak" of the energy hill, or, the downswing, you add more energy to the highest point of energy. I know this from prior experience playing "Kerbal Space Program" where when you fire your engine at the lowest point in your orbit, it significantly increases your height when you get to the highest point. Thank you for showing how this works with an interactive game rather than an static piece of paper.

Also, I'm not sure If I'm exactly right, but I'm pretty confident. Please correct me If I'm wrong.

~Thomas

### Re: Swing Explorer

Posted: Fri Jun 21, 2019 3:07 pm
Man, I have been puzzling over this exact question for quite some time, so when I saw this I clicked on it immediately. Now it all makes sense. It was the option to turn off the gravity that made it all click for me. It also didn't hurt that I've been thinking about locomotion in zero gravity a lot lately. My theory is as follows:

If you are at rest in outer space with nothing to push on, it is impossible to displace yourself. However, it is possible to rotate yourself, as shown in this video. The astronaut uses his arms and legs as reaction wheels, allowing him to change his orientation without needing a net torque from another object. The same principle is at work here: turn off gravity, and you are still able to rotate your center of mass with respect to the swing's pivot point. This is because the motion of your feet produces a greater torque in one direction than your head produces in the other.

To further simplify: Replace the swinger with a flywheel, connected to the swing bar by a motor. Still imagining that we're in zero gravity, what do you think will happen when the motor activates?
Spoiler
Show
That's right, the whole swing will start rotating, in the opposite direction from the flywheel. Turn the motor back off, and as the flywheel stops spinning, the swing stops too.
Now, a human swinger is like a flywheel that can only rotate through a limited angle. This small rotation in the flywheel induces an even smaller rotation in the swing. But by timing that small rotation at the peak of your swing, you lend yourself precious gravitational potential. Bit by bit, those angular displacements add up.

Unrelated note: Are you the same Andy Hull who created the engine for Spelunky HD? I wouldn't be surprised; it's one of the most airtight physics simulations I've ever come across, and I've seen just the same from your games.

### Re: Swing Explorer

Posted: Fri Jun 21, 2019 4:55 pm
Mon Mar 18, 2019 10:47 pm
I'm not exactly sure, but I think it's the tension in the rope!
Interesting - but doesn't the tension you're noticing in the rope aim towards the point the swing is hanging from? How could that force accelerate the swinger side-to-side... wouldn't it just be able to accelerate them towards or away from that point?
Ed_B wrote:
Fri Jun 21, 2019 3:07 pm
This small rotation in the flywheel induces an even smaller rotation in the swing.
Ah - I like this notion of using angular momentum to try to understand it. (Glad the gravity-free mode was useful!) One of my favorite bits of this puzzle is that you can look at it in several ways, and they're each different. There's the energy perspective, the angular momentum perspective, and the force perspective. So if the angular momentum perspective is making sense to you, my question then becomes (sorry) what's the unbalanced force that's getting the swinger to move?

Oh, and I'm Andy Hall, not Hull, so that's a bit of a funny coincidence, but no, not me on Spelunky.

### Re: Swing Explorer

Posted: Mon Jan 20, 2020 6:18 am

Experiment with the theory. Hypothesis what might happen and then experiment. When experiment and your understanding contradict, try to think of what went wrong.

### Re: Swing Explorer

Posted: Mon Sep 21, 2020 7:26 pm
I don't know how my screenshot worked but here is a bug:

After 10000 total energy the person gets disconnected.

And what is the shape of the ground after the cliff?

### Re: Swing Explorer

Posted: Wed Sep 23, 2020 10:43 am
Oh, really? They pop right off the swing? Cool! I guess I haven't gotten them running so fast before.

And to answer your question, after the cliff the ground is still flat, just lowered down below the screen so you can't see it.

### Re: Swing Explorer

Posted: Thu Sep 24, 2020 3:50 pm
It can not be flat because the potential energy is different depending on how far you throw the person.

### Re: Swing Explorer

Posted: Thu Sep 24, 2020 4:01 pm
here is an 100 potential energy cliff