APIdia Launch Partner
Top Description Fields Constructors
com.badlogic.gdx.physics.box2d.joints

public Class GearJointDef

extends JointDef
Class Inheritance
Imports
com.badlogic.gdx.physics.box2d.Joint, .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

Modifier and TypeField and Description
public Joint
joint1

The first revolute/prismatic joint attached to the gear joint.

public Joint
joint2

The second revolute/prismatic joint attached to the gear joint.

public float
ratio

The gear ratio.

Inherited from com.badlogic.gdx.physics.box2d.JointDef:
bodyAbodyBcollideConnectedtype

Constructor Summary

AccessConstructor and Description
public

Field Detail

joint1back to summary
public Joint joint1

The first revolute/prismatic joint attached to the gear joint.

joint2back to summary
public Joint joint2

The second revolute/prismatic joint attached to the gear joint.

ratioback to summary
public float ratio

The gear ratio.

See Also
{@link GearJoint} for explanation.

Constructor Detail

GearJointDefback to summary
public GearJointDef()