Page 1 of 1

Creating Gear Joints

Posted: Thu Jun 15, 2017 4:49 am
by Connorses
I'm trying to use the Gear Joint, and I've got 2 bodies attached to a static body via Prismatic Joints. The prismatic joints work fine; adding the gear joint causes both bodies to lock in place. I noticed that the Gear Joint page says "the joints it uses connect their respective bodies to the ground and have the ground as the first body". I think this is my problem. What does "the ground" mean and how do I attach things to it?

Re: Creating Gear Joints

Posted: Thu Jun 15, 2017 6:45 am
by raidho36
It means that gear-connected bodies cannot float freely, they must be connected to the ground by the joints you lock together by gears, and those joints must lock ground to body, not body to ground - function argument order matters too.

Re: Creating Gear Joints

Posted: Fri Jun 16, 2017 2:20 am
by Connorses
Hey, so I figured it out just now! I had to set the ratio to a negative number. The prismatics locked in place because they were both trying to move past their limit.