PulleyJointDef class

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

@author Daniel Murphy

Inheritance

Constructors

PulleyJointDef()

Properties

groundAnchorA Vector2
The first ground anchor in world coordinates. This point never moves.
read / write
groundAnchorB Vector2
The second ground anchor in world coordinates. This point never moves.
read / write
lengthA double
The a reference length for the segment attached to bodyA.
read / write
lengthB double
The a reference length for the segment attached to bodyB.
read / write
localAnchorA Vector2
The local anchor point relative to bodyA's origin.
read / write
localAnchorB Vector2
The local anchor point relative to bodyB's origin.
read / write
ratio double
The pulley ratio, used to simulate a block-and-tackle.
read / write
bodyA Body
The first attached body.
read / write, inherited
bodyB Body
The second attached body.
read / write, inherited
collideConnected bool
Set this flag to true if the attached bodies should collide.
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type JointType
The joint type is set automatically for concrete joint types.
read / write, inherited
userData Object
Use this to attach application specific data to your joints.
read / write, inherited

Methods

initialize(Body b1, Body 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 non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited