Problems with FixedAngleJoint

Oct 4, 2010 at 2:13 AM


I'm having an error when Creating a FixedAngleJoint and maybe someone can help me.

I've found a few example around the discussions and the creation process seems simple so I'm not sure what is wrong.

When creating a FixedAngleJoint...

player.fixedAngleJoint = JointFactory.CreateFixedAngleJoint(World, player.rect.Body);

I get an ArtithmeticException from FixedAngleJoint::SolveVelocityConstraints: 'Function does not accept floating point Not-a-Number values.' From what i can see '_massFactor' == infinity

The call stack:







Anyone ever experience this? The player's rect body alone works correctly, but after creating the joint, I get the exception.

Any help is appreciated.

Oct 5, 2010 at 8:12 AM
Edited Oct 5, 2010 at 8:14 AM

Well, after wasting a whole day, I found that I had the rectangle body's FixedRotation set to true. Apparently the engine doesn't like that.