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_bodiesFixture.m_bodyprivate BodyWorld.m_bodyListBody.m_nextBody.m_prevprivate Body[]World.stackprivate final Body[]World.tempBodiesMethods 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 TypeFieldDescriptionprivate final Body[]ConstantVolumeJoint.bodiesJointDef.bodyAThe first attached body.JointDef.bodyBThe second attached body.protected BodyJoint.m_bodyAprotected BodyJoint.m_bodyBprivate final BodyGearJoint.m_bodyCprivate final BodyGearJoint.m_bodyDJointEdge.otherProvides 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.bodiesMethods 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, 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.LongvoidJbDeserializer.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 BodyTestbedTest.bombprotected BodyTestbedTest.groundBodyMethods 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.Longjava.lang.LongvoidListenerAdapter.processBody(Body argBody, java.lang.Long argTag) voidTestbedTest.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 BodyLiquidTest.bodprivate Body[]LiquidTest.liquid(package private) BodyBodyTypes.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) BodyApplyForce.m_body(package private) BodyContinuousTest.m_body(package private) BodyShapeEditing.m_body(package private) BodyBreakable.m_body1(package private) BodyVerticalStack.m_bulletprivate BodyCar.m_carprivate BodyCharacterCollision.m_character(package private) BodyTheoJansen.m_chassis(package private) BodyBodyTypes.m_platform(package private) BodyTheoJansen.m_wheelprivate BodyCar.m_wheel1private BodyCar.m_wheel2Methods in org.jbox2d.testbed.tests with parameters of type BodyModifier and TypeMethodDescriptionjava.lang.Longjava.lang.Longjava.lang.Longjava.lang.Longjava.lang.Longjava.lang.LongvoidApplyForce.processBody(Body body, java.lang.Long tag) voidBodyTypes.processBody(Body body, java.lang.Long tag) voidCar.processBody(Body body, java.lang.Long tag) voidCharacterCollision.processBody(Body argBody, java.lang.Long argTag) voidTheoJansen.processBody(Body argBody, java.lang.Long argTag) voidVerticalStack.processBody(Body argBody, java.lang.Long argTag)