Appearance
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
bodyB
bodyB:
Body
The second attached body.
Inherited from
collideConnected?
optionalcollideConnected:boolean
Set this flag to true if the attached bodies should collide.
Inherited from
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?
optionalmaxLength:number
The maximum length of the rope. Warning: this must be larger than linearSlop or the joint will have no effect.
Inherited from
style?
optionalstyle:Style
Styling for dev-tools.
Inherited from
userData?
optionaluserData:any
Use this to attach application specific data to your joints.