This project has moved. For the latest updates, please go here.

Joint Separation

Topics: Developer Forum, User Forum
Oct 13, 2011 at 4:09 AM

Hello All,

I'm creating a joint between two "human" arms:

  joint = JointFactory.CreateRevoluteJoint(world, upperArm.Body, fixture.Body, new Vector2(0, -ConvertUnits.ToSimUnits(orLowerArm.Y)));
        joint.LowerLimit = MathHelper.ToRadians(-120);
        joint.UpperLimit = MathHelper.ToRadians(0);
        joint.LimitEnabled = true;


The joint works great but the joint separates the fixtures enough to show an unwanted gap when there is a pull on the upper arm (which is constant because the character is grabbing onto a floating object).
Is there anything I can do to "tighten" up the joint? 

Thank you for your help in advance.


Oct 13, 2011 at 7:13 AM

you can not really fix this

i also had/haves this probem at my platformer if something drops on his head. i kinda solved it by setting the density of everything lower

Oct 13, 2011 at 3:19 PM

Thank you HellGate.  I was afraid of that.  I mean it makes sense, I know that my fat ass would pull my arm off if I jumped and grabbed onto something with one arm.
I'll tweak the density and see if I can maintain the hero's body movement that I've been happy with unfortunately. 
I think I'll try using a distance joint on top of that just for giggles, I will report back on that.

Thanks for your advice and help,