com.badlogic.gdx.physics.box2d.joints
Class GearJointDef
java.lang.Object
com.badlogic.gdx.physics.box2d.JointDef
com.badlogic.gdx.physics.box2d.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.
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
The gear ratio. |
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
- The gear ratio.
- See Also:
for explanation.
GearJointDef
public GearJointDef()
Copyright © 2013. All Rights Reserved.