Appearance
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
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
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?
optionalstyle:Style
Styling for dev-tools.
Inherited from
userData?
optionaluserData:any
Use this to attach application specific data to your joints.