This project has moved and is read-only. For the latest updates, please go here.

Trouble Making a Revolute Joint

Aug 3, 2009 at 8:18 PM

Hello i'm having trouble making a revolute joint in my game. i wrote the following code (from what i gathered from the samples and such)...

player1_Waist = new RevoluteJoint(player1_LegsBody, player1_TorsoBody, player1_LegsBody.Position);

but it doesn't seem to work, as the two bodies just seem to fall away from each other. what am i missing here?

Aug 3, 2009 at 11:29 PM

Have you remembered to add the joint to the physics simulator?

Aug 4, 2009 at 3:19 AM

... well this is embarrassing. no, i didn't add it. that fixed it.

however now i've got another problem. the two bodies are colliding because they are so close. they just sort of jiggle and vibrate in place.

is there any way i can disable collision between them?

Aug 4, 2009 at 3:23 AM

You can ignore collision between two specific geometries by using Geom.IgnoreCollisionWith(). You could also use CollisionGroups or CollisionCategories if you need more power over what to ignore.

Aug 4, 2009 at 3:30 AM


alright thanks.