CoronaSDK 2013.1144 | Released: 19 Jun 2013, 10:41am | What's New | Download Now
These docs are *very* out of date.
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
You will be redirected to the new docs in a few seconds.
If you are certain you want to see the old docs, click cancel.
Cancel | Continue to new docs
joint:setRotationLimits()
Description:
Sets upper and lower rotation limits on the joint in degrees.
For use with Pivot joints.
Syntax:
joint:setRotationLimits( lowerLimit, upperLimit )
Example:
myJoint = physics.newJoint( "pivot", crateA, crateB, 200,300 ) myJoint.isLimitEnabled = true myJoint:setRotationLimits( -45, 45 )
Parameters:
lowerLimit
The lower rotation limit in degrees from zero (0).
upperLimit
The upper rotation limit in degrees from zero (0).
Returns:
Nothing.
Remarks:
Supported on operating systems and platforms for build numbers shown:
- Mac OS X:Build 2010.222
- Windows:Build 2010.222
- iOS:Build 2010.222
- Android:Build 2010.222