Sorry just strugling with this for some reason, instead of the expected where there would be a small distance between my target and my “head” I had them slowly closing the gap between them and stopping at the maxLength.
The problem appears that the ropeLength CAN extend beyond its maxLength, however it just recovers back to the maxLength, however if you are swiping quickly across the screen the recover time takes too long.
M.players.headE = display.newCircle(event.x,event.y, ballR)
physics.addBody( M.players.headE, “dynamic”, { density = 1000000,filter = headECollisionFilter, radius = 10 } )
M.players.head = display.newCircle(event.x,event.y, ballR)
physics.addBody( M.players.head, “dynamic”, { density = 1,filter = headCollisionFilter, radius = M.headR } )
M.players.head.joint = physics.newJoint( “rope”, M.players.headE, M.players.head )
M.players.head.joint.maxLength = 100