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]