All Classes and Interfaces
Class
Description
A
Box2DSprite using an AnimatedSprite for animation.Parses
Just create a new
If you only want specific Fixtures or Bodies, you can use the
How you define compatible objects in the TiledMap editor:
In your object layer, right-click an object and set its properties to those of the Body/Fixture/both (in case you're creating an
For type, you have to choose
To add Fixtures to a Body, add a
To create
MapObjects from a Map and generates Box2D Bodies, Fixtures and Joints from them.Just create a new
Box2DMapObjectParser and call Box2DMapObjectParser.load(World, MapLayer) to load all compatible objects (defined by the the Box2DMapObjectParser.aliases) into your World.If you only want specific Fixtures or Bodies, you can use the
Box2DMapObjectParser.createBody(World, MapObject) and Box2DMapObjectParser.createFixture(MapObject) methods.How you define compatible objects in the TiledMap editor:
In your object layer, right-click an object and set its properties to those of the Body/Fixture/both (in case you're creating an
object) you'd like, as defined in the used Box2DMapObjectParser.Aliases object.For type, you have to choose
Box2DMapObjectParser.Aliases.body, Box2DMapObjectParser.Aliases.fixture or Box2DMapObjectParser.Aliases.object.To add Fixtures to a Body, add a
Box2DMapObjectParser.Aliases.body property with the same value to each Fixture of a Body.To create
Joints, add any object to the layer and just put everything needed in its properties.defines the
Box2DMapObjectParser.aliases to use when parsingAllows modification of
Note that the map object given to you is the one directly from the map, so if you modify it, you modify the
Also listens to Box2D objects that have been created.
MapObjects before they are used to create Box2D objects.Note that the map object given to you is the one directly from the map, so if you modify it, you modify the
Map instance! If you want to avoid that, make a copy.Also listens to Box2D objects that have been created.
Does nothing.
A
Box2DPolygonSprite is a PolygonSprite with additional drawing information and the ability to draw itself on a given Body or Fixture.A
Box2DSprite is a Sprite with additional drawing information and the ability to draw itself on a given Body or Fixture.Placed in this package to have access to the protected
addr fields.provides methods for operations with Box2D
Bodies, Fixtures and Shapeschecks if Box2D's preconditions are met to avoid native crashes
indicates that a ChainShape cannot be created from this polyline
the reason why this ChainShape cannot be created
indicates that a PolygonShape cannot be created from this polygon
the reason this shape is invalid
indicates that a poly shape cannot be created from these vertices
b2Settings.h
cached method results
Breaks bodies or fixtures if they get hit too hard.
a callback for a
Breakable if its container (body or fixture) was destroyed (for example to play a sound)Returns false in all methods implemented from
Breakable.Callback.Manages the
Breakables of the Contacts it receives.Holds
Chain.segments and Chain.connections to simulate a chain.used by a
Chain to modify itholds one or more
jointsa
Chain.CopyBuilder that uses a JointDef in Chain.JointDefCopyBuilder.createConnection(Body, int, Body, int)Override this if you only want to use a subset of methods of the
ContactListener.a
ContactListener that sends Contacts to an Array of ContactListenersan
InputAdapter managing a MouseJointDoes nothing and returns false.
moves a body to a position using forces
the derivative control loop component
the proportional control loop component
a proportional-derivative controller
rotates a body to an angle using torque
the derivative control loop component
the proportional control loop component
a proportional-derivative controller
Notifies a
WorldObserver.Listener of changes in the world.the changes of a
Bodythe changes of an object in a world since the last time
WorldObserver.Change.update(Object) was calledthe changes of a
DistanceJointthe changes of a
Fixturethe changes of a
FrictionJointthe changes of a
GearJointthe changes of a
Jointthe listener notified by a
WorldObserverA class that implements Listener.
the changes of a
MotorJointthe changes of a
MouseJointthe changes of a
PrismaticJointthe changes of a
RevoluteJointthe changes of a
RopeJointA Listener that calls another Listener on unpredictable/unexpected events.
the changes of a
WeldJointthe changes of a
WheelJointthe changes of a
World