object:getGroundAnchorB()

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

Overview

Returns the x and y coordinates of a "pulley" joint’s second ground anchor in content coordinates.

Syntax

joint:getGroundAnchorB()

Example

local bgx, bgy = myJoint:getGroundAnchorB()