Physics - joint rotation limit not working

I have a character with a “head” and a “tail”. I attach them together with a pivot joint, but I only want the tail to rotate a maximum of 5 degrees in either direction:

myJoint = physics.newJoint( "pivot", head, tail, head.x, head.y )  
myJoint.isLimitEnabled = true  
myJoint:setRotationLimits( -5, 5 )  

However, when the body gets hit hard enough, the tail still flails about, obviously going much farther than the 5 degree limit. What can I do to prevent this? [import]uid: 52127 topic_id: 12962 reply_id: 312962[/import]

bump +1

I am having the same problem, only worse: The rotation limits do nothing at all! I am using pivot joints in a long chain of physics bodies, like a bendy snake. But I want it to be bendy, no floppy, so I need rotation limits, and they just do not work. Every joint rotates all the way around several times, if it wants to. And there’s very little force involved here.
[import]uid: 63787 topic_id: 12962 reply_id: 83233[/import]

mightyenigma have you filed a bug with sample code to reproduce? What’s the bug #? [import]uid: 52491 topic_id: 12962 reply_id: 83291[/import]