Uses of Class
org.jbox2d.dynamics.Body
-
Packages that use Body Package Description org.jbox2d.dynamics org.jbox2d.dynamics.contacts org.jbox2d.dynamics.joints org.jbox2d.serialization org.jbox2d.serialization.pb org.jbox2d.testbed.framework org.jbox2d.testbed.tests -
-
Uses of Body in org.jbox2d.dynamics
Fields in org.jbox2d.dynamics declared as Body Modifier and Type Field Description Body[]
Island. m_bodies
Body
Fixture. m_body
private Body
World. m_bodyList
Body
Body. m_next
Body
Body. m_prev
private Body[]
World. stack
private Body[]
World. tempBodies
Methods in org.jbox2d.dynamics that return Body Modifier and Type Method 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.Methods in org.jbox2d.dynamics with parameters of type Body Modifier and Type Method 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. -
Uses of Body in org.jbox2d.dynamics.contacts
Fields in org.jbox2d.dynamics.contacts declared as Body Modifier and Type Field Description Body
ContactEdge. other
provides quick access to the other body attached. -
Uses of Body in org.jbox2d.dynamics.joints
Fields in org.jbox2d.dynamics.joints declared as Body Modifier and Type Field Description private Body[]
ConstantVolumeJoint. bodies
Body
JointDef. bodyA
The first attached body.Body
JointDef. bodyB
The second attached body.protected Body
Joint. m_bodyA
protected Body
Joint. m_bodyB
private Body
GearJoint. m_bodyC
private Body
GearJoint. m_bodyD
Body
JointEdge. other
Provides quick access to the other body attachedFields in org.jbox2d.dynamics.joints with type parameters of type Body Modifier and Type Field Description (package private) java.util.ArrayList<Body>
ConstantVolumeJointDef. bodies
Methods in org.jbox2d.dynamics.joints that return Body Modifier and Type Method 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.Methods in org.jbox2d.dynamics.joints with parameters of type Body Modifier and Type Method Description void
ConstantVolumeJointDef. addBody(Body argBody)
Adds a body to the groupvoid
ConstantVolumeJointDef. addBodyAndJoint(Body argBody, DistanceJoint argJoint)
Adds a body and the pre-made distance joint.void
DistanceJointDef. initialize(Body b1, Body b2, Vec2 anchor1, Vec2 anchor2)
Initialize the bodies, anchors, and length using the world anchors.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
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.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
WheelJointDef. initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)
-
Uses of Body in org.jbox2d.serialization
Methods in org.jbox2d.serialization that return Body Modifier and Type Method Description Body
JbDeserializer. deserializeBody(World world, java.io.InputStream input)
Deserializes a bodyMethods in org.jbox2d.serialization with parameters of type Body Modifier and Type Method Description Fixture
JbDeserializer. deserializeFixture(Body body, java.io.InputStream input)
Deserializes a fixturejava.lang.Long
JbSerializer.ObjectSigner. getTag(Body body)
void
JbDeserializer.ObjectListener. processBody(Body body, java.lang.Long tag)
SerializationResult
JbSerializer. serialize(Body body)
Serializes a bodyMethod parameters in org.jbox2d.serialization with type arguments of type Body Modifier and Type Method Description Joint
JbDeserializer. deserializeJoint(World world, java.io.InputStream input, java.util.Map<java.lang.Integer,Body> bodyMap, java.util.Map<java.lang.Integer,Joint> jointMap)
Deserializes a jointSerializationResult
JbSerializer. serialize(Joint joint, java.util.Map<Body,java.lang.Integer> bodyIndexMap, java.util.Map<Joint,java.lang.Integer> jointIndexMap)
Serializes joints. -
Uses of Body in org.jbox2d.serialization.pb
Methods in org.jbox2d.serialization.pb that return Body Modifier and Type Method Description Body
PbDeserializer. deserializeBody(World argWorld, java.io.InputStream argInput)
Body
PbDeserializer. deserializeBody(World argWorld, Box2D.PbBody argBody)
Methods in org.jbox2d.serialization.pb with parameters of type Body Modifier and Type Method Description Fixture
PbDeserializer. deserializeFixture(Body argBody, java.io.InputStream argInput)
Fixture
PbDeserializer. deserializeFixture(Body argBody, Box2D.PbFixture argFixture)
SerializationResult
PbSerializer. serialize(Body argBody)
Box2D.PbBody.Builder
PbSerializer. serializeBody(Body argBody)
Method parameters in org.jbox2d.serialization.pb with type arguments of type Body Modifier and Type Method Description Joint
PbDeserializer. deserializeJoint(World argWorld, java.io.InputStream argInput, java.util.Map<java.lang.Integer,Body> argBodyMap, java.util.Map<java.lang.Integer,Joint> jointMap)
Joint
PbDeserializer. deserializeJoint(World argWorld, Box2D.PbJoint joint, java.util.Map<java.lang.Integer,Body> argBodyMap, java.util.Map<java.lang.Integer,Joint> jointMap)
SerializationResult
PbSerializer. serialize(Joint argJoint, java.util.Map<Body,java.lang.Integer> argBodyIndexMap, java.util.Map<Joint,java.lang.Integer> argJointIndexMap)
Box2D.PbJoint.Builder
PbSerializer. serializeJoint(Joint joint, java.util.Map<Body,java.lang.Integer> argBodyIndexMap, java.util.Map<Joint,java.lang.Integer> argJointIndexMap)
-
Uses of Body in org.jbox2d.testbed.framework
Fields in org.jbox2d.testbed.framework declared as Body Modifier and Type Field Description private Body
TestbedTest. bomb
protected Body
TestbedTest. groundBody
Methods in org.jbox2d.testbed.framework that return Body Modifier and Type Method Description Body
TestbedTest. getBomb()
Gets the 'bomb' body if it's presentBody
TestbedTest. getGroundBody()
Gets the ground body of the world, used for some jointsMethods in org.jbox2d.testbed.framework with parameters of type Body Modifier and Type Method Description java.lang.Long
SignerAdapter. getTag(Body argBody)
java.lang.Long
TestbedTest. getTag(Body body)
void
ListenerAdapter. processBody(Body argBody, java.lang.Long argTag)
void
TestbedTest. processBody(Body body, java.lang.Long tag)
-
Uses of Body in org.jbox2d.testbed.tests
Fields in org.jbox2d.testbed.tests declared as Body Modifier and Type Field Description private Body
LiquidTest. bod
private Body[]
LiquidTest. liquid
(package private) Body
BodyTypes. m_attachment
(package private) Body[]
EdgeShapes. m_bodies
(package private) Body[]
PolyShapes. m_bodies
(package private) Body[]
RayCastTest. m_bodies
(package private) Body[]
SensorTest. m_bodies
(package private) Body[]
Web. m_bodies
(package private) Body
ApplyForce. m_body
(package private) Body
ContinuousTest. m_body
(package private) Body
ShapeEditing. m_body
(package private) Body
Breakable. m_body1
(package private) Body
VerticalStack. m_bullet
private Body
Car. m_car
private Body
CharacterCollision. m_character
(package private) Body
TheoJansen. m_chassis
(package private) Body
BodyTypes. m_platform
(package private) Body
TheoJansen. m_wheel
private Body
Car. m_wheel1
private Body
Car. m_wheel2
Methods in org.jbox2d.testbed.tests with parameters of type Body Modifier and Type Method Description java.lang.Long
ApplyForce. getTag(Body body)
java.lang.Long
BodyTypes. getTag(Body body)
java.lang.Long
Car. getTag(Body body)
java.lang.Long
CharacterCollision. getTag(Body argBody)
java.lang.Long
TheoJansen. getTag(Body argBody)
java.lang.Long
VerticalStack. getTag(Body argBody)
void
ApplyForce. processBody(Body body, java.lang.Long tag)
void
BodyTypes. processBody(Body body, java.lang.Long tag)
void
Car. processBody(Body body, java.lang.Long tag)
void
CharacterCollision. processBody(Body argBody, java.lang.Long argTag)
void
TheoJansen. processBody(Body argBody, java.lang.Long argTag)
void
VerticalStack. processBody(Body argBody, java.lang.Long argTag)
-