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 BodyMethods 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 TypeFieldDescriptionJointDef.bodyAThe first attached body.JointDef.bodyBThe second attached body.protected BodyJoint.m_bodyAprotected BodyJoint.m_bodyBJointEdge.otherProvides quick access to the other body attachedMethods 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.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.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)