object:getLocalAnchorA()

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

Overview

Returns the x and y coordinates of the joint’s anchor point within object A, where A and B are the two joined bodies. Values are relative (local) to object A.

Gotchas

Does not apply to "touch" or "pulley" joints.

Syntax

joint:getLocalAnchorA()

Example

local ax, ay = myJoint:getLocalAnchorA()