Uses of Class
org.jbox2d.dynamics.Body
Packages that use Body
Package
Description
The Dynamics module is the most complex part of jbox2d and is the part you
likely interact with the most.
Joints are used to constraint two bodies together in various fashions.
Protobuffer serializer and deserializer.
Klassen, die innerhalb der Engine als Middleware zwischen der externen
Physics-Engine
JBox2D-Projekt von
Daniel Murhpy und der Engine-API
fungieren.
Die verschieden Verbindungen zwischen Figuren.
-
Uses of Body in org.jbox2d.dynamics
Fields in org.jbox2d.dynamics declared as BodyModifier and TypeFieldDescriptionBody[]Island.bodiesFixture.bodyBody.nextThe next body in the world's body list.Body.prevThe previous body in the world's body list.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 BodyBody.getNext()Get the next body in the world's body list.Methods in org.jbox2d.dynamics with parameters of type BodyModifier and TypeMethodDescriptionvoidvoidFixture.create(Body body, FixtureDef def) voidWorld.destroyBody(Body body) Destroy a rigid body given a definition.booleanBody.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 TypeFieldDescriptionprotected BodyJoint.bodyAJointDef.bodyAThe first attached body.protected BodyJoint.bodyBJointDef.bodyBThe second attached body.JointEdge.otherProvides quick access to the other body attached.Methods in org.jbox2d.dynamics.joints that return BodyModifier and TypeMethodDescriptionBody[]ConstantVolumeJoint.getBodies()final BodyJoint.getBodyA()Get the first body attached to this joint.final BodyJoint.getBodyB()Get the second body attached to this joint.Methods in org.jbox2d.dynamics.joints with parameters of type BodyModifier and TypeMethodDescriptionvoidAdds a body to the groupvoidConstantVolumeJointDef.addBodyAndJoint(Body argBody, DistanceJoint argJoint) Adds a body and the pre-made distance joint.voidDistanceJointDef.initialize(Body b1, Body b2, Vec2 anchor1, Vec2 anchor2) Initialize the bodies, anchors, and length using the world anchors.voidFrictionJointDef.initialize(Body bA, Body bB, Vec2 anchor) Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.voidMotorJointDef.initialize(Body bA, Body bB) voidPrismaticJointDef.initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis) Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.voidPulleyJointDef.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.voidRevoluteJointDef.initialize(Body b1, Body b2, Vec2 anchor) Initialize the bodies, anchors, and reference angle using the world anchor.voidWeldJointDef.initialize(Body bA, Body bB, Vec2 anchor) Initialize the bodies, anchors, and reference angle using a world anchor point.voidWheelJointDef.initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis) -
Uses of Body in org.jbox2d.particle
Fields in org.jbox2d.particle declared as Body -
Uses of Body in org.jbox2d.serialization
Methods in org.jbox2d.serialization that return BodyModifier and TypeMethodDescriptionJbDeserializer.deserializeBody(World world, InputStream input) Deserializes a bodyMethods in org.jbox2d.serialization with parameters of type BodyModifier and TypeMethodDescriptionJbDeserializer.deserializeFixture(Body body, InputStream input) Deserializes a fixturevoidJbDeserializer.ObjectListener.processBody(Body body, Long tag) Serializes a bodyMethod parameters in org.jbox2d.serialization with type arguments of type Body -
Uses of Body in org.jbox2d.serialization.pb
Methods in org.jbox2d.serialization.pb that return BodyModifier and TypeMethodDescriptionPbDeserializer.deserializeBody(World argWorld, 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, 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, InputStream argInput, Map<Integer, Body> argBodyMap, Map<Integer, Joint> jointMap) PbDeserializer.deserializeJoint(World argWorld, Box2D.PbJoint joint, Map<Integer, Body> argBodyMap, Map<Integer, Joint> jointMap) PbSerializer.serialize(Joint argJoint, Map<Body, Integer> argBodyIndexMap, Map<Joint, Integer> argJointIndexMap) PbSerializer.serializeJoint(Joint joint, Map<Body, Integer> argBodyIndexMap, Map<Joint, Integer> argJointIndexMap) -
Uses of Body in org.jbox2d.testbed.framework
Fields in org.jbox2d.testbed.framework declared as BodyMethods 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 Body -
Uses of Body in org.jbox2d.testbed.tests
Methods in org.jbox2d.testbed.tests with parameters of type BodyModifier and TypeMethodDescriptionvoidApplyForce.processBody(Body body, Long tag) voidBodyTypes.processBody(Body body, Long tag) voidCar.processBody(Body body, Long tag) voidCharacterCollision.processBody(Body argBody, Long argTag) voidTheoJansen.processBody(Body argBody, Long argTag) voidVerticalStack.processBody(Body argBody, Long argTag) -
Uses of Body in pi.physics
Methods in pi.physics that return BodyModifier and TypeMethodDescriptionBodyHandler.body()NullHandler.body()WorldHandler.createBody(BodyDef bd, Actor actor) Methods in pi.physics with parameters of type Body -
Uses of Body in pi.physics.joints
Methods in pi.physics.joints with parameters of type Body