RopeJoint

RopeJoint

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:
Parameters:
Name Type Description
spriteA Sprite
spriteB Sprite

Extends

Classes

RopeJoint

Members

maxLength

The maximum length of the rope.
Source: