Skip to content

Interface: PulleyJointDef

Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, and a pulley ratio.

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


groundAnchorA

groundAnchorA: Vec2Value

The first ground anchor in world coordinates. This point never moves.


groundAnchorB

groundAnchorB: Vec2Value

The second ground anchor in world coordinates. This point never moves.


lengthA

lengthA: number

The reference length for the segment attached to bodyA.


lengthB

lengthB: number

The reference length for the segment attached to bodyB.


localAnchorA

localAnchorA: Vec2Value

The local anchor point relative to bodyA's origin.


localAnchorB

localAnchorB: Vec2Value

The local anchor point relative to bodyB's origin.


ratio

ratio: number

The pulley ratio, used to simulate a block-and-tackle.


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