CoronaSDK 2013.1143 | Released: 18 Jun 2013, 2:19am | 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:getAnchorA( )
Description:
A function that returns the (x,y) coordinates of the joint’s anchor points within objects A and B, which are the two joined objects. The values are given in the local coordinates of each object, so an anchor point at the center of the object would be at position (0, 0).
Syntax:
x, y = joint:getAnchorA( )
Example:
x, y = myJoint:getAnchorA() x, y = myJoint:getAnchorB()
Returns:
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
I tested touch joint.
It seems that:
AnchorA is the position of the target point.
AnchorB is the global position the of anchor point on the physical object which is being dragged.