Package org.jbox2d.dynamics.joints
Class GearJointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
org.jbox2d.dynamics.joints.GearJointDef
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe first revolute/prismatic joint attached to the gear joint.The second revolute/prismatic joint attached to the gear joint.float
Gear ratio. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
joint1
The first revolute/prismatic joint attached to the gear joint. -
joint2
The second revolute/prismatic joint attached to the gear joint. -
ratio
public float ratioGear ratio.- See Also:
-
-
Constructor Details
-
GearJointDef
public GearJointDef()
-