Type Number Object Joint Library physics.* Revision Current Public Release (2017.3135) Keywords joint, length1 See also object.length2 Physics Joints (guide)
Read-only value that, upon instantiation of a
"pulley" joint, indicates the distance in pixels between the first anchor point and its stationary pulley anchor point.
local pulleyJoint = physics.newJoint( "pulley", bodyA, bodyB, anchorA_x, anchorA_y, anchorB_x, anchorB_y, bodyA.x, bodyA.y, bodyB.x, bodyB.y, 1.0 ) print( pulleyJoint.length1 ) print( pulleyJoint.length2 ) print( pulleyJoint.ratio )