file: GearJoint.aus

class: GearJoint

[19:7] extends: Joint

Wraps jbox2d's GearJoint (com.almasb.fxgl.physics.box2d.dynamics.joints.GearJoint). Connects two joints together with a gear ratio: coordinate1 + ratio * coordinate2 = constant. Each connected joint must be a revolute or prismatic joint and must attach a dynamic body to a static body (the static body is body1 on the source joint). Destroying joint1 or joint2 also requires destroying this gear joint manually.

Methods