Package | Description |
---|---|
org.jbox2d.dynamics | |
org.jbox2d.dynamics.contacts | |
org.jbox2d.dynamics.joints |
Modifier and Type | Field and Description |
---|---|
Body[] |
Island.m_bodies |
Body |
Fixture.m_body |
Body |
Body.m_next |
Body |
Body.m_prev |
Modifier and Type | Method and Description |
---|---|
Body |
World.createBody(BodyDef def)
create a rigid body given a definition.
|
Body |
Fixture.getBody()
Get the parent body of this fixture.
|
Body |
World.getBodyList()
Get the world body list.
|
Body |
Body.getNext()
Get the next body in the world's body list.
|
Modifier and Type | Method and Description |
---|---|
void |
Island.add(Body body) |
void |
Fixture.create(Body body,
FixtureDef def) |
void |
World.destroyBody(Body body)
destroy a rigid body given a definition.
|
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 |
RevoluteJointDef.initialize(Body b1,
Body b2,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using the world
anchor.
|
void |
WeldJointDef.initialize(Body bA,
Body bB,
Vec2 anchor)
Initialize the bodies, anchors, and reference angle using a world
anchor point.
|
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 |
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 |
WheelJointDef.initialize(Body b1,
Body b2,
Vec2 anchor,
Vec2 axis) |
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.
|
Copyright © 2017. All Rights Reserved.