Type Function Object Joint Library physics.* Return value Numbers Revision 2017.3060 Keywords joint, getLocalAnchorB See also object:getLocalAnchorA() object:getAnchorA() object:getAnchorB() Physics Joints (guide)
Returns the x and y coordinates of the joint's anchor point within object B
, where A
and B
are the two joined bodies. Values are relative (local) to object B
.
Does not apply to "touch"
or "pulley"
joints.
joint:getLocalAnchorB()
local bx, by = myJoint:getLocalAnchorB()