org.jbox2d.dynamics.joints
Class GearJointDef

java.lang.Object
  extended by org.jbox2d.dynamics.joints.JointDef
      extended by org.jbox2d.dynamics.joints.GearJointDef

public class GearJointDef
extends JointDef

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.

Author:
Daniel Murphy

Field Summary
 Joint joint1
          The first revolute/prismatic joint attached to the gear joint.
 Joint joint2
          The second revolute/prismatic joint attached to the gear joint.
 float ratio
          Gear ratio.
 
Fields inherited from class org.jbox2d.dynamics.joints.JointDef
bodyA, bodyB, collideConnected, type, userData
 
Constructor Summary
GearJointDef()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joint1

public Joint joint1
The first revolute/prismatic joint attached to the gear joint.


joint2

public Joint joint2
The second revolute/prismatic joint attached to the gear joint.


ratio

public float ratio
Gear ratio.

See Also:
GearJoint
Constructor Detail

GearJointDef

public GearJointDef()


Copyright © 2013. All Rights Reserved.