Skip to content

Interface: RopeJointDef

Rope joint definition. This requires two body anchor points and a maximum lengths. Note: by default the connected objects will not collide. see collideConnected in JointDef.

Extends

Properties

bodyA

bodyA: Body

The first attached body.

Inherited from

JointDef.bodyA


bodyB

bodyB: Body

The second attached body.

Inherited from

JointDef.bodyB


collideConnected?

optional collideConnected: boolean

Set this flag to true if the attached bodies should collide.

Inherited from

JointDef.collideConnected


localAnchorA

localAnchorA: Vec2Value

The local anchor point relative to bodyA's origin.


localAnchorB

localAnchorB: Vec2Value

The local anchor point relative to bodyB's origin.


maxLength?

optional maxLength: number

The maximum length of the rope. Warning: this must be larger than linearSlop or the joint will have no effect.

Inherited from

RopeJointOpt.maxLength


style?

optional style: Style

Styling for dev-tools.

Inherited from

JointDef.style


userData?

optional userData: any

Use this to attach application specific data to your joints.

Inherited from

JointDef.userData