Package | Description |
---|---|
com.badlogic.gdx.physics.box2d | |
com.badlogic.gdx.physics.box2d.joints |
Modifier and Type | Field and Description |
---|---|
Joint |
JointEdge.joint |
Modifier and Type | Field and Description |
---|---|
protected LongMap<Joint> |
World.joints
all known joints
|
Modifier and Type | Method and Description |
---|---|
Joint |
World.createJoint(JointDef def)
Create a joint to constrain bodies together.
|
Modifier and Type | Method and Description |
---|---|
void |
World.destroyJoint(Joint joint)
Destroy a joint.
|
Modifier and Type | Method and Description |
---|---|
void |
World.getJoints(Array<Joint> joints) |
Constructor and Description |
---|
JointEdge(Body other,
Joint joint) |
Modifier and Type | Class and Description |
---|---|
class |
DistanceJoint
A distance joint constrains two points on two bodies to remain at a fixed distance from each other.
|
class |
FrictionJoint
Friction joint.
|
class |
GearJoint
A gear joint is used to connect two joints together.
|
class |
MotorJoint
A motor joint is used to control the relative motion between two bodies.
|
class |
MouseJoint
A mouse joint is used to make a point on a body track a specified world point.
|
class |
PrismaticJoint
A prismatic joint.
|
class |
PulleyJoint
The pulley joint is connected to two bodies and two fixed ground points.
|
class |
RevoluteJoint
A revolute joint constrains two bodies to share a common point while they are free to rotate about the point.
|
class |
RopeJoint
A rope joint enforces a maximum distance between two points on two bodies.
|
class |
WeldJoint
A weld joint essentially glues two bodies together.
|
class |
WheelJoint
A wheel joint.
|
Modifier and Type | Field and Description |
---|---|
Joint |
GearJointDef.joint1
The first revolute/prismatic joint attached to the gear joint.
|
Joint |
GearJointDef.joint2
The second revolute/prismatic joint attached to the gear joint.
|
Modifier and Type | Method and Description |
---|---|
Joint |
GearJoint.getJoint1()
Get first joint.
|
Joint |
GearJoint.getJoint2()
Get first joint.
|
Constructor and Description |
---|
GearJoint(World world,
long addr,
Joint joint1,
Joint joint2) |