I am trying to make a physics game with a ragdoll using Box2d 2.0.2 . The ragdoll is composed of bodies connected by revolute joints. The following video demostrates the problem I have.
http://ntfs.lamer.la/sharing/out-1.ogv
As you can see, the weight of the body makes the head spin 180 deg, despite the head-neck and neck-body joints having a cca. -10 deg to +10 deg limit set. I have digged throught b2RevoluteJoint.cpp, but found nothing I could change. Is there any way to make the limits sitffer? Or is the problem somewhere else?
Notes:
The head and body is added to index group -2, so they do not collide.
The elipses are only textures, the physics uses regular boxes.
The limits DO work, but only for small forces.
I suspect that once the head is turned 180 deg, the limits stop working.
http://ntfs.lamer.la/sharing/out-1.ogv
As you can see, the weight of the body makes the head spin 180 deg, despite the head-neck and neck-body joints having a cca. -10 deg to +10 deg limit set. I have digged throught b2RevoluteJoint.cpp, but found nothing I could change. Is there any way to make the limits sitffer? Or is the problem somewhere else?
Notes:
The head and body is added to index group -2, so they do not collide.
The elipses are only textures, the physics uses regular boxes.
The limits DO work, but only for small forces.
I suspect that once the head is turned 180 deg, the limits stop working.