Type Function Object Joint Library physics.* Return value Numbers Revision 2017.3060 Keywords joint, getRotationLimits See also object:setRotationLimits() Physics Joints (guide)
This function returns the current negative and positive rotation limits of a "pivot"
joint.
joint:getRotationLimits()
myJoint.isLimitEnabled = true myJoint:setRotationLimits( -45, 45 ) local negLimit, posLimit = myJoint:getRotationLimits() print( negLimit, posLimit )