object:getAnchorB()

Type Function
Object Joint
Library physics.*
Return value Numbers
Revision Release 2024.3703
Keywords joint, getAnchorB
See also object:getAnchorA()
Physics Joints (guide)

Overview

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 in content space.

Syntax

joint:getAnchorB()

Example

local bx, by = myJoint:getAnchorB()