PulleyJointDef<A extends Body, B extends Body> class

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

Inheritance

Constructors

PulleyJointDef()

Properties

bodyA ↔ A
The first attached body.
getter/setter pairinherited
bodyB ↔ B
The second attached body.
getter/setter pairinherited
collideConnected bool
Set this flag to true if the attached bodies should collide.
getter/setter pairinherited
groundAnchorA Vector2
The first ground anchor in world coordinates. This point never moves.
getter/setter pair
groundAnchorB Vector2
The second ground anchor in world coordinates. This point never moves.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lengthA double
The a reference length for the segment attached to bodyA.
getter/setter pair
lengthB double
The a reference length for the segment attached to bodyB.
getter/setter pair
localAnchorA Vector2
The local anchor point relative to body1's origin.
finalinherited
localAnchorB Vector2
The local anchor point relative to body2's origin.
finalinherited
ratio double
The pulley ratio, used to simulate a block-and-tackle.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userData Object?
Use this to attach application specific data to your joints.
getter/setter pairinherited

Methods

initialize(A b1, B b2, Vector2 ga1, Vector2 ga2, Vector2 anchor1, Vector2 anchor2, double r) → void
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited