Options
All
  • Public
  • Public/Protected
  • All
Menu

Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.

Hierarchy

Index

Constructors

Properties

bodyA: b2Body

The first attached body.

bodyB: b2Body

The second attached body.

collideConnected: boolean

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

groundAnchorA: b2Vec2

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

groundAnchorB: b2Vec2

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

lengthA: number

The a reference length for the segment attached to bodyA.

lengthB: number

The a reference length for the segment attached to bodyB.

localAnchorA: b2Vec2

The local anchor point relative to body1's origin.

localAnchorB: b2Vec2

The local anchor point relative to body2's origin.

maxLengthA: number

The maximum length of the segment attached to bodyA.

maxLengthB: number

The maximum length of the segment attached to bodyB.

ratio: number

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

type: number

The joint type is set automatically for concrete joint types.

userData: any

Use this to attach application specific data to your joints.

Methods

Generated using TypeDoc