new RopeJoint(spriteA, spriteB) A Rope joint prevents two sprites from going further than a certain distance from each other, which is defined by the max length of the rope, but they do allow the sprites to get closer together. Source: p5play.js, line 8244 Parameters: Name Type Description spriteA Sprite spriteB Sprite Extends Joint Classes RopeJoint Members maxLength The maximum length of the rope. Source: p5play.js, line 8273