Uses of Class
org.jbox2d.dynamics.Body

Packages that use Body
org.jbox2d.collision.shapes   
org.jbox2d.dynamics This package handles non-collision aspects of simulation. 
org.jbox2d.dynamics.contacts This package performs contact handling, and is essentially internal to JBox2d. 
org.jbox2d.dynamics.joints This package deals with all things joint-related. 
org.jbox2d.p5 This package makes up the BoxWrap2d library for Processing, a simple layer on top of JBox2d to ease construction, simulation, and display of physical worlds when using Processing. 
org.jbox2d.testbed The JBox2d 2.0 testbed, implemented using Processing
org.jbox2d.testbed.tests This package containst all the testbed examples, which extend org.jbox2d.testbed.AbstractExample. 
org.jbox2d.util.nonconvex This package (currently non-functional) will handle convex decomposition of polygons. 
 

Uses of Body in org.jbox2d.collision.shapes
 

Fields in org.jbox2d.collision.shapes declared as Body
 Body Shape.m_body
           
 

Methods in org.jbox2d.collision.shapes that return Body
 Body Shape.getBody()
          Get the parent body of this shape.
 

Uses of Body in org.jbox2d.dynamics
 

Fields in org.jbox2d.dynamics declared as Body
 Body[] Island.m_bodies
           
 Body Body.m_next
           
 Body Body.m_prev
           
 

Methods in org.jbox2d.dynamics that return Body
 Body World.createBody(BodyDef def)
          Create a body given a definition.
 Body World.getBodyList()
          Get the world body list.
 Body World.getGroundBody()
          The world provides a single static ground body with no collision shapes.
 Body Body.getNext()
          Get the next body in the world's body list.
 

Methods in org.jbox2d.dynamics with parameters of type Body
 void World.destroyBody(Body b)
          Destroy a rigid body given a definition.
 boolean Body.isConnected(Body other)
          This is used to prevent connected bodies from colliding.
 void BoundaryListener.violation(Body body)
          This is called for each body that leaves the world boundary.
 

Uses of Body in org.jbox2d.dynamics.contacts
 

Fields in org.jbox2d.dynamics.contacts declared as Body
 Body ContactConstraint.body1
           
 Body ContactConstraint.body2
           
 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
 Body JointDef.body1
           
 Body JointDef.body2
           
 Body Joint.m_body1
           
 Body Joint.m_body2
           
 Body PulleyJoint.m_ground
           
 Body GearJoint.m_ground1
           
 Body GearJoint.m_ground2
           
 Body JointEdge.other
           
 

Methods in org.jbox2d.dynamics.joints that return Body
 Body[] ConstantVolumeJoint.getBodies()
           
 Body Joint.getBody1()
          Get the first body attached to this joint.
 Body Joint.getBody2()
          Get the second body attached to this joint.
 

Methods in org.jbox2d.dynamics.joints with parameters of type Body
 void ConstantVolumeJointDef.addBody(Body b)
           
 void RevoluteJointDef.initialize(Body b1, Body b2, Vec2 anchor)
           
 void PrismaticJointDef.initialize(Body b1, Body b2, Vec2 anchor, Vec2 axis)
           
 void DistanceJointDef.initialize(Body b1, Body b2, Vec2 anchor1, Vec2 anchor2)
          Initialize the bodies, anchors, and length using the world anchors.
 void PulleyJointDef.initialize(Body b1, Body b2, Vec2 ga1, Vec2 ga2, Vec2 anchor1, Vec2 anchor2, float r)
           
 

Uses of Body in org.jbox2d.p5
 

Methods in org.jbox2d.p5 that return Body
 Body Physics.createCircle(float x, float y, float r)
          Create a circle in screen coordinates
 Body[] Physics.createHollowBox(float centerX, float centerY, float width, float height, float thickness)
          Create a hollow box of the given screen dimensions.
 Body Physics.createPolygon(float... vertices)
          Create a polygon based on vertices.
 Body Physics.createRect(float x0, float y0, float x1, float y1)
          Create a rectangle given by screen coordinates of corners.
 Body[] Physics.getBorder()
          Get the border Body[] array, or null if the border has been removed.
 

Methods in org.jbox2d.p5 with parameters of type Body
 void Physics.applyForce(Body b, float fx, float fy)
          Apply a force to the body at the center of mass.
 void Physics.applyForce(Body b, float fx, float fy, float pointX, float pointY)
          Apply a force to a body at a point.
 void Physics.applyForce(Body b, Vec2 f)
          Apply a force to the body at the center of mass.
 void Physics.applyForce(Body b, Vec2 f, Vec2 point)
          Apply a force to a body at a point
static DistanceJoint JointUtils.createDistanceJoint(Body a, Body b)
          Creates and returns a simple distance joint between two bodies, based on their world body positions (NOT their centers of mass).
 DistanceJoint Physics.createDistanceJoint(Body a, Body b, float xa, float ya, float xb, float yb)
          Create a distance (stick) joint between two bodies that holds the specified points at a constant distance.
 PrismaticJoint Physics.createPrismaticJoint(Body a, Body b, float dirX, float dirY)
          Create a prismatic (piston) joint between two bodies that allows movement in the given direction.
 PulleyJoint Physics.createPulleyJoint(Body a, Body b, float groundAnchorAx, float groundAnchorAy, float groundAnchorBx, float groundAnchorBy, float anchorAx, float anchorAy, float anchorBx, float anchorBy, float ratio)
          Create a pulley joint between the The pulley joint is connected to two bodies and two fixed ground points.
 RevoluteJoint Physics.createRevoluteJoint(Body a, Body b, float x, float y)
          Create a revolute (pin) joint between the two bodies at the given position.
static RevoluteJoint JointUtils.createRevoluteJoint(Body a, Body b, Vec2 worldCenter)
          Creates a RevoluteJoint between two bodies that rotates around a given point in World coordinates.
 float Physics.getAngle(Body b)
          Get the angle (in radians)
 Vec2 Physics.getCMPosition(Body b)
          Get the center of mass position (screen coordinates)
 Vec2 Physics.getPosition(Body b)
          Get the location of the body's origin (screen coordinates) - note that this does not usually correspond to the center of mass position, which may be obtained by calling Physics.getCMPosition(Body).
 void ForceUtils.push(Body b, Vec2 dir, double force)
          Pushes a body in the specified direction.
 void ForceUtils.pushTowards(Body b, Vec2 worldTarget, double force)
          Pushes a body towards the specified location.
 void Physics.removeBody(Body b)
          Remove a body from the world.
 

Uses of Body in org.jbox2d.testbed
 

Fields in org.jbox2d.testbed declared as Body
protected  Body AbstractExample.m_bomb
          The bomb body.
 

Methods in org.jbox2d.testbed with parameters of type Body
 void AbstractExample.bindImage(processing.core.PImage p, Vec2 localOffset, float localRotation, float localScale, Body b)
          Draws an image on a body.
 void AbstractExample.boundaryViolated(Body body)
          Stub method for concrete examples to override if desired.
 

Uses of Body in org.jbox2d.testbed.tests
 

Fields in org.jbox2d.testbed.tests declared as Body
 Body SpriteBinding.body
           
 Body SpringRestitutionTest.bodyA0
           
 Body SpringRestitutionTest.bodyA1
           
 Body SpringRestitutionTest.bodyB0
           
 Body SpringRestitutionTest.bodyB1
           
 Body SpringRestitutionTest.bodyC0
           
 Body SpringRestitutionTest.bodyC1
           
 Body SpringRestitutionTest.bodyD0
           
 Body SpringRestitutionTest.bodyD1
           
 Body Biped.Chest
           
 Body Biped.Head
           
 Body Biped.LCalf
           
 Body Biped.LFoot
           
 Body Biped.LForearm
           
 Body Biped.LHand
           
 Body Biped.LThigh
           
 Body Biped.LUpperArm
           
 Body Biped.Neck
           
 Body Biped.Pelvis
           
 Body Biped.RCalf
           
 Body Biped.RFoot
           
 Body Biped.RForearm
           
 Body Biped.RHand
           
 Body Biped.RThigh
           
 Body Biped.RUpperArm
           
 Body Biped.Stomach
           
 

Methods in org.jbox2d.testbed.tests with parameters of type Body
 void SensorTest.addSpringForce(Body bA, Body bB, float k, float friction, float desiredDist)
           
 void SpringRestitutionTest.addSpringForce(Body bA, Vec2 localA, Body bB, Vec2 localB, float k, float friction, float desiredDist)
           
 void SensorTest.addSpringForce(Body bA, Vec2 localA, Body bB, Vec2 localB, float k, float friction, float desiredDist)
           
 void ShapeDrawing.createStrokeRect(Vec2 start, Vec2 end, float radius, Body body, PolygonDef sd)
           
 

Uses of Body in org.jbox2d.util.nonconvex
 

Methods in org.jbox2d.util.nonconvex with parameters of type Body
static void Polygon.decomposeConvexAndAddTo(Polygon p, Body bd, PolygonDef prototype)
          Decomposes a polygon into convex polygons and adds all pieces to a b2BodyDef using a prototype b2PolyDef.