GearJointDef<A extends Body, B extends Body> class

Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work). The provided joints must attach a dynamic body to a static body.

Inheritance

Constructors

GearJointDef()

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
hashCode int
The hash code for this object.
no setterinherited
joint1 Joint
The first revolute/prismatic joint attached to the gear joint.
getter/setter pair
joint2 Joint
The second revolute/prismatic joint attached to the gear joint.
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
Gear ratio.
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

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