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