Type Function Object Joint Library physics.* Return value Numbers Revision 2017.3060 Keywords joint, getLimits See also object:setLimits() object.isLimitEnabled Physics Joints (guide)
This function returns the current negative and positive motion limits for a "piston"
joint.
joint:getLimits()
myJoint.isLimitEnabled = true myJoint:setLimits( 100, 200 ) local negLimit, posLimit = myJoint:getLimits() print( negLimit, posLimit )