| Modifier and Type | Method and Description |
|---|---|
Body |
PhysicsComponent.getBody() |
| Modifier and Type | Method and Description |
|---|---|
Body |
World.createBody(BodyDef def)
Create a rigid body given a definition.
|
Body |
Fixture.getBody() |
| Modifier and Type | Method and Description |
|---|---|
Array<Body> |
World.getBodies()
DO NOT MODIFY.
|
| Modifier and Type | Method and Description |
|---|---|
void |
World.destroyBody(Body body)
Destroy a rigid body.
|
boolean |
Body.shouldCollide(Body other)
This is used to prevent connected bodies from colliding.
|
| Modifier and Type | Field and Description |
|---|---|
Body |
ContactEdge.other
provides quick access to the other body attached.
|
| Modifier and Type | Field and Description |
|---|---|
Body |
JointDef.bodyA
The first attached body.
|
Body |
JointDef.bodyB
The second attached body.
|
protected Body |
Joint.m_bodyA |
protected Body |
Joint.m_bodyB |
Body |
JointEdge.other
Provides quick access to the other body attached
|
| Modifier and Type | Method and Description |
|---|---|
Body[] |
ConstantVolumeJoint.getBodies() |
Body |
Joint.getBodyA()
get the first body attached to this joint.
|
Body |
Joint.getBodyB()
get the second body attached to this joint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ConstantVolumeJointDef.addBody(Body argBody)
Adds a body to the group
|
void |
ConstantVolumeJointDef.addBodyAndJoint(Body argBody,
DistanceJoint argJoint)
Adds a body and the pre-made distance joint.
|
void |
MotorJointDef.initialize(Body bA,
Body bB) |
void |
WeldJointDef.initialize(Body bA,
Body bB,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using a world anchor point.
|
void |
RevoluteJointDef.initialize(Body b1,
Body b2,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using the world anchor.
|
void |
FrictionJointDef.initialize(Body bA,
Body bB,
Vec2 anchor)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world
axis.
|
void |
WheelJointDef.initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis) |
void |
PrismaticJointDef.initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis)
Initialize the bodies, anchors, axis, and reference angle using the world anchor and world
axis.
|
void |
DistanceJointDef.initialize(Body b1,
Body b2,
Vec2 anchor1,
Vec2 anchor2)
Initialize the bodies, anchors, and length using the world anchors.
|
void |
PulleyJointDef.initialize(Body b1,
Body b2,
Vec2 ga1,
Vec2 ga2,
Vec2 anchor1,
Vec2 anchor2,
float r)
Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
|
| Modifier and Type | Field and Description |
|---|---|
Body |
ParticleBodyContact.body
The body making contact.
|
Copyright © 2018. All rights reserved.