springy revolute joints?

I'm making a little something with Box2D, and have been encountering problems with joints in general, but most recently with revolute joints. The problem I'm having with revolute joints now is that they don't seem to be holding things to the actual point of the joint, when put under some stress...

mm... pictures!

before (the red dot is the revolute joint)
Image

during (the red... line? is the revolute joint?)
Image

this strange springiness causes the catapult to lose a lot of energy. I actually get a lot more energy out of the system when I remove any joints, and just let the beam lay on top of the triangle! (but then of course there's the problem that the see-saw/catapult can come apart.)


before I tried the revolute joint, I also tried creating the see-saw by having a circle connected to a beam with two distance joints (the distance joints formed a sort of flat "V" shape, with the circle at the bottom of the "V"), but they exhibited a similar problem: a springiness - even with frequencyHz = 0 - which would cause the the structure to occasionally turn inside out when the block is dropped on it.

all this weird joint springiness/flexibility makes me wonder if I'm missing something bigger... if there's some setting I'm not aware of. I've read a little about continuous physics, and that having it enabled helps some problems, but I also understand that enabled is the default...

anyway, I'm at a loss, clearly 😛 any help would be much appreciated!
This sounds like you aren't iterating the constraints very many times per step. When you step the engine with world.step(...), how many iterations do you use?
hm! 10, apparently (it's a part of the code I hadn't looked at in a while). I tried 20, 30, 50, and even 500, trying to improve the situation, however the effect remained.

(I'm also surprised that a number as large as 500 didn't bring things to a crawl... but then again, there's relatively little happening in my world at the moment.)

[edit] just to make sure I'm not doing something there all wrong:
Code:
world.step(1.0f / Game.FPS, 10);
is appropriate code? (Game.FPS = 30) I assume the change-in-time variable shouldn't matter in this case, but...

[edit again!] whoa! actually, changing dt helped a lot! a smaller unit of time yields more precision... that makes sense, I suppose.

I think I've got it from here; thanks for pointing me in the right direction!
Good work, that was going to be my next suggestion after seeing your time step of 1/30. I recommend using 1/60 [s].

Original thread: https://box2d.org/forum/viewtopic.php?t=5650