new DistanceJoint(spriteA, spriteB) Distance joints are used to constrain the distance between two sprites. Source: p5play.js, line 7861 Parameters: Name Type Description spriteA Sprite spriteB Sprite Extends Joint Classes DistanceJoint