|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.physics.box2d.JointDef
com.badlogic.gdx.physics.box2d.joints.GearJointDef
public class 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.badlogic.gdx.physics.box2d.JointDef |
---|
JointDef.JointType |
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. |
Fields inherited from class com.badlogic.gdx.physics.box2d.JointDef |
---|
bodyA, bodyB, collideConnected, type |
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 |
---|
public Joint joint1
public Joint joint2
public float ratio
for explanation.
Constructor Detail |
---|
public GearJointDef()
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |