Example usage for Java com.badlogic.gdx.physics.box2d World fields, constructors, methods, implement or subclass
The text is from its open source code.
World(Vector2 gravity, boolean doSleep) Construct a world object. |
Body | createBody(BodyDef def) Create a rigid body given a definition. |
Joint | createJoint(JointDef def) Create a joint to constrain bodies together. |
void | destroyBody(Body body) Destroy a rigid body given a definition. |
void | destroyJoint(Joint joint) Destroy a joint. |
void | dispose() |
boolean | getAutoClearForces() Get the flag that controls automatic clearing of forces after each time step. |
void | getBodies(Array bodies) |
int | getBodyCount() Get the number of bodies. |
Array | getContactList() |
Vector2 | getGravity() |
void | getJoints(Array |
void | rayCast(final RayCastCallback callback, Vector2 point1, Vector2 point2) |
void | setAutoClearForces(boolean flag) Set flag to control automatic clearing of forces after each time step. |
void | setContactFilter(final ContactFilter filter) Register a contact filter to provide specific control over collision. |
void | setContactListener(final ContactListener listener) |
void | setGravity(Vector2 gravity) Change the global gravity vector. |
void | step(float timeStep, int velocityIterations, int positionIterations) Take a time step. |