Uses of Class
org.jbox2d.dynamics.Body
Packages that use Body
Package
Description
-
Uses of Body in org.jbox2d.dynamics
Fields in org.jbox2d.dynamics declared as BodyModifier and TypeFieldDescriptionBody[]
Island.m_bodies
Fixture.m_body
private Body
World.m_bodyList
Body.m_next
Body.m_prev
private Body[]
World.stack
private final Body[]
World.tempBodies
Methods in org.jbox2d.dynamics that return BodyModifier and TypeMethodDescriptionWorld.createBody
(BodyDef def) create a rigid body given a definition.Fixture.getBody()
Get the parent body of this fixture.World.getBodyList()
Get the world body list.final Body
Body.getNext()
Get the next body in the world's body list.Methods in org.jbox2d.dynamics with parameters of type BodyModifier and TypeMethodDescriptionvoid
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 -
Uses of Body in org.jbox2d.dynamics.joints
Fields in org.jbox2d.dynamics.joints declared as BodyModifier and TypeFieldDescriptionprivate final Body[]
ConstantVolumeJoint.bodies
JointDef.bodyA
The first attached body.JointDef.bodyB
The second attached body.protected Body
Joint.m_bodyA
protected Body
Joint.m_bodyB
private final Body
GearJoint.m_bodyC
private final Body
GearJoint.m_bodyD
JointEdge.other
Provides quick access to the other body attachedFields in org.jbox2d.dynamics.joints with type parameters of type BodyModifier and TypeFieldDescription(package private) java.util.ArrayList
<Body> ConstantVolumeJointDef.bodies
Methods in org.jbox2d.dynamics.joints that return BodyModifier and TypeMethodDescriptionBody[]
ConstantVolumeJoint.getBodies()
final Body
Joint.getBodyA()
get the first body attached to this joint.final Body
Joint.getBodyB()
get the second body attached to this joint.Methods in org.jbox2d.dynamics.joints with parameters of type BodyModifier and TypeMethodDescriptionvoid
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 BodyModifier and TypeMethodDescriptionJbDeserializer.deserializeBody
(World world, java.io.InputStream input) Deserializes a bodyMethods in org.jbox2d.serialization with parameters of type BodyModifier and TypeMethodDescriptionJbDeserializer.deserializeFixture
(Body body, java.io.InputStream input) Deserializes a fixturejava.lang.Long
void
JbDeserializer.ObjectListener.processBody
(Body body, java.lang.Long tag) Serializes a bodyMethod parameters in org.jbox2d.serialization with type arguments of type BodyModifier and TypeMethodDescriptionJbDeserializer.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 jointJbSerializer.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 BodyModifier and TypeMethodDescriptionPbDeserializer.deserializeBody
(World argWorld, java.io.InputStream argInput) PbDeserializer.deserializeBody
(World argWorld, Box2D.PbBody argBody) Methods in org.jbox2d.serialization.pb with parameters of type BodyModifier and TypeMethodDescriptionPbDeserializer.deserializeFixture
(Body argBody, java.io.InputStream argInput) PbDeserializer.deserializeFixture
(Body argBody, Box2D.PbFixture argFixture) PbSerializer.serializeBody
(Body argBody) Method parameters in org.jbox2d.serialization.pb with type arguments of type BodyModifier and TypeMethodDescriptionPbDeserializer.deserializeJoint
(World argWorld, java.io.InputStream argInput, java.util.Map<java.lang.Integer, Body> argBodyMap, java.util.Map<java.lang.Integer, Joint> jointMap) PbDeserializer.deserializeJoint
(World argWorld, Box2D.PbJoint joint, java.util.Map<java.lang.Integer, Body> argBodyMap, java.util.Map<java.lang.Integer, Joint> jointMap) PbSerializer.serialize
(Joint argJoint, java.util.Map<Body, java.lang.Integer> argBodyIndexMap, java.util.Map<Joint, java.lang.Integer> argJointIndexMap) 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 BodyModifier and TypeFieldDescriptionprivate Body
TestbedTest.bomb
protected Body
TestbedTest.groundBody
Methods in org.jbox2d.testbed.framework that return BodyModifier and TypeMethodDescriptionTestbedTest.getBomb()
Gets the 'bomb' body if it's presentTestbedTest.getGroundBody()
Gets the ground body of the world, used for some jointsMethods in org.jbox2d.testbed.framework with parameters of type BodyModifier and TypeMethodDescriptionjava.lang.Long
java.lang.Long
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 BodyModifier and TypeFieldDescriptionprivate 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 BodyModifier and TypeMethodDescriptionjava.lang.Long
java.lang.Long
java.lang.Long
java.lang.Long
java.lang.Long
java.lang.Long
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)