Get the anchor point on bodyA in world coordinates.
Body A anchor.
Get the anchor point on bodyB in world coordinates.
Body B anchor.
Get the first body attached to this joint.
Body A.
Get the second body attached to this joint.
Body B.
Get the next joint the world joint list.
Next joint.
Get the gear ratio.
Gear ratio.
Get the reaction force on body2 at the joint anchor in N.
Reaction force in N.
Get the reaction torque on body 2 in N.
Reaction torque in N.
Get the type of the concrete joint.
Joint type.
Get the user data pointer.
User data. Cast to your data type.
Short-cut function to determine if either body is inactive.
True if active, otherwise false.
Set the gear ratio.
Set the user data pointer.
Your custom data.
Generated using TypeDoc
A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joint. You specify a gear ratio to bind the motions together: coordinate1 + ratio coordinate2 = constant The ratio can be negative or positive. If one joint is a revolute joint and the other joint is a prismatic joint, then the ratio will have units of length or units of 1/length.
The revolute and prismatic joints must be attached to fixed bodies (which must be body1 on those joints).